public class ClusterizableMessageSourceWrapper extends org.mule.runtime.api.meta.AbstractAnnotatedObject implements MessageSource, org.mule.runtime.api.lifecycle.Lifecycle, MuleContextAware, FlowConstructAware
ClusterizableMessageSource in order to manage the lifecycle of the wrapped instance differently depending if
the node is primary or not inside a cluster. Non clustered nodes are always primary.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ClusterizableMessageSourceWrapper(ClusterizableMessageSource messageSource) |
ClusterizableMessageSourceWrapper(MuleContext muleContext,
ClusterizableMessageSource messageSource,
FlowConstruct flowConstruct) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
initialise() |
boolean |
isStarted() |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setListener(Processor listener)
Set the MessageProcessor listener on a message source which will be invoked when a message is received or generated.
|
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
getAnnotation, getAnnotations, getLocation, setAnnotationspublic ClusterizableMessageSourceWrapper(ClusterizableMessageSource messageSource)
public ClusterizableMessageSourceWrapper(MuleContext muleContext, ClusterizableMessageSource messageSource, FlowConstruct flowConstruct)
public void setListener(Processor listener)
MessageSourcesetListener in interface MessageSourcepublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.public boolean isStarted()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.