@Deprecated public interface Service extends Serializable, FlowConstruct, Lifecycle, NameableObject
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.PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Modifier and Type | Method and Description |
---|---|
void |
dispatchEvent(MuleEvent event)
Deprecated.
|
ServiceAsyncReplyCompositeMessageSource |
getAsyncReplyMessageSource()
Deprecated.
|
Component |
getComponent()
Deprecated.
|
MessagingExceptionHandler |
getExceptionListener()
Deprecated.
|
String |
getInitialState()
Deprecated.
Returns the initial state of this service
|
LifecycleManager |
getLifecycleManager()
Deprecated.
|
MessageSource |
getMessageSource()
Deprecated.
|
Model |
getModel()
Deprecated.
Returns the name of the model that this descriptor is registered with.
|
MuleContext |
getMuleContext()
Deprecated.
|
MessageProcessor |
getOutboundMessageProcessor()
Deprecated.
Outbound Routers control how events are published by a service once.
|
ServiceStatistics |
getStatistics()
Deprecated.
Returns the Service statistics.
|
boolean |
isPaused()
Deprecated.
|
boolean |
isStarted()
Deprecated.
Determines whether this service has been started
|
boolean |
isStopped()
Deprecated.
|
void |
pause()
Deprecated.
Pauses event processing for a single Mule Service.
|
void |
resume()
Deprecated.
Resumes a single Mule Service that has been paused.
|
MuleEvent |
sendEvent(MuleEvent event)
Deprecated.
|
void |
setAsyncReplyMessageSource(ServiceAsyncReplyCompositeMessageSource asyncReplyMessageSource)
Deprecated.
|
void |
setComponent(Component component)
Deprecated.
|
void |
setExceptionListener(MessagingExceptionHandler exceptionListener)
Deprecated.
|
void |
setInitialState(String state)
Deprecated.
Sets the initial state of this service
|
void |
setMessageSource(MessageSource messageSource)
Deprecated.
|
void |
setModel(Model model)
Deprecated.
|
void |
setOutboundMessageProcessor(MessageProcessor processor)
Deprecated.
Outbound message processor controls how events are published by a service once the
event has been processed.
|
getMessageInfoMapping
getLifecycleState
initialise
dispose
setName
getName
@Deprecated void dispatchEvent(MuleEvent event) throws MuleException
event
- the event to consumeMuleException
- if the event fails to be processed@Deprecated MuleEvent sendEvent(MuleEvent event) throws MuleException
event
- the event to consumeMuleException
- 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()
void setComponent(Component component)
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)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.