public class TransportMessageProcessContext extends Object implements MessageProcessContext
MessageProcessContext implementations for transports.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
TransportMessageProcessContext(MessageReceiver messageReceiver)
Creates an instance that executes the flow in the current thread.
|
TransportMessageProcessContext(MessageReceiver messageReceiver,
WorkManager flowExecutionWorkManager)
Creates an instance that executes the flow using the supplied WorkManager.
|
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getExecutionClassLoader() |
FlowConstruct |
getFlowConstruct() |
WorkManager |
getFlowExecutionWorkManager() |
protected MessageSource |
getMessageReceiver() |
MessageSource |
getMessageSource() |
TransactionConfig |
getTransactionConfig() |
boolean |
supportsAsynchronousProcessing() |
public TransportMessageProcessContext(MessageReceiver messageReceiver)
messageReceiver - receiver of the messagepublic TransportMessageProcessContext(MessageReceiver messageReceiver, WorkManager flowExecutionWorkManager)
messageReceiver - receiver of the messageflowExecutionWorkManager - the work manager to use for the flow executionpublic MessageSource getMessageSource()
getMessageSource in interface MessageProcessContextMessageSource that retrieve the message. Can not be nullprotected MessageSource getMessageReceiver()
public FlowConstruct getFlowConstruct()
getFlowConstruct in interface MessageProcessContextFlowConstruct were the incoming message is going to be executed. Can not be nullpublic boolean supportsAsynchronousProcessing()
supportsAsynchronousProcessing in interface MessageProcessContextpublic WorkManager getFlowExecutionWorkManager()
getFlowExecutionWorkManager in interface MessageProcessContextWorkManager were the incoming message must be processed.
If null it will be executed in the same thread were the message was receivedpublic TransactionConfig getTransactionConfig()
getTransactionConfig in interface MessageProcessContextTransactionConfig associated to the MessageSource that received the message.
If null then no transaction config will be used.public ClassLoader getExecutionClassLoader()
getExecutionClassLoader in interface MessageProcessContextCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.