|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
Service
is the internal representation of a Mule Managed service. It
is responsible for managing the interaction of events to and from the service as
well as managing pooled resources.
Field Summary |
---|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Startable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Stoppable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Method Summary | |
---|---|
void |
dispatchEvent(MuleEvent event)
Deprecated. |
ServiceAsyncReplyCompositeMessageSource |
getAsyncReplyMessageSource()
|
Component |
getComponent()
Returns the Component that is a invoked by a Service for each incoming
MuleEvent routed on by the inbound routers. |
MessagingExceptionHandler |
getExceptionListener()
|
String |
getInitialState()
Returns the initial state of this service |
LifecycleManager |
getLifecycleManager()
|
MessageSource |
getMessageSource()
|
Model |
getModel()
Returns the name of the model that this descriptor is registered with. |
MuleContext |
getMuleContext()
|
MessageProcessor |
getOutboundMessageProcessor()
Outbound Routers control how events are published by a service once. |
ServiceStatistics |
getStatistics()
Returns the Service statistics. |
boolean |
isPaused()
|
boolean |
isStarted()
Determines whether this service has been started |
boolean |
isStopped()
|
void |
pause()
Pauses event processing for a single Mule Service. |
void |
resume()
Resumes a single Mule Service that has been paused. |
MuleEvent |
sendEvent(MuleEvent event)
Deprecated. |
void |
setAsyncReplyMessageSource(ServiceAsyncReplyCompositeMessageSource asyncReplyMessageSource)
|
void |
setComponent(Component component)
Sets the Component that is a invoked by a Service for each incoming
MuleEvent routed on by the inbound routers. |
void |
setExceptionListener(MessagingExceptionHandler exceptionListener)
|
void |
setInitialState(String state)
Sets the initial state of this service |
void |
setMessageSource(MessageSource messageSource)
|
void |
setModel(Model model)
|
void |
setOutboundMessageProcessor(MessageProcessor processor)
Outbound message processor controls how events are published by a service once the event has been processed. |
Methods inherited from interface org.mule.api.construct.FlowConstruct |
---|
getMessageInfoMapping |
Methods inherited from interface org.mule.api.lifecycle.LifecycleStateEnabled |
---|
getLifecycleState |
Methods inherited from interface org.mule.api.lifecycle.Initialisable |
---|
initialise |
Methods inherited from interface org.mule.api.lifecycle.Startable |
---|
start |
Methods inherited from interface org.mule.api.lifecycle.Stoppable |
---|
stop |
Methods inherited from interface org.mule.api.lifecycle.Disposable |
---|
dispose |
Methods inherited from interface org.mule.api.NameableObject |
---|
setName |
Methods inherited from interface org.mule.api.NamedObject |
---|
getName |
Method Detail |
---|
@Deprecated void dispatchEvent(MuleEvent event) throws MuleException
event
- the event to consume
MuleException
- if the event fails to be processed@Deprecated MuleEvent sendEvent(MuleEvent event) throws MuleException
event
- the event to consume
MuleException
- if the event fails to be processedboolean isStarted()
boolean isStopped()
void pause() throws MuleException
stop()
, a paused
service will still consume messages from the underlying transport, but those
messages will be queued until the service is resumed.
MuleException
void resume() throws MuleException
MuleException
boolean isPaused()
MessageSource getMessageSource()
MessageProcessor getOutboundMessageProcessor()
OutboundRouterCollection
String getInitialState()
Model getModel()
void setMessageSource(MessageSource messageSource)
void setOutboundMessageProcessor(MessageProcessor processor)
void setInitialState(String state)
state
- the initial state of this servicevoid setModel(Model model)
Component getComponent()
Service
for each incoming
MuleEvent
routed on by the inbound routers.
void setComponent(Component component)
Service
for each incoming
MuleEvent
routed on by the inbound routers.
ServiceStatistics getStatistics()
getStatistics
in interface FlowConstruct
MuleContext getMuleContext()
getMuleContext
in interface FlowConstruct
LifecycleManager getLifecycleManager()
void setAsyncReplyMessageSource(ServiceAsyncReplyCompositeMessageSource asyncReplyMessageSource)
ServiceAsyncReplyCompositeMessageSource getAsyncReplyMessageSource()
MessagingExceptionHandler getExceptionListener()
getExceptionListener
in interface FlowConstruct
void setExceptionListener(MessagingExceptionHandler exceptionListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |