public class TransportMessageProcessContext extends Object implements MessageProcessContext
MessageProcessContext
implementations for transports.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() |
protected transient Log logger
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 MessageProcessContext
MessageSource
that retrieve the message. Can not be nullprotected MessageSource getMessageReceiver()
public FlowConstruct getFlowConstruct()
getFlowConstruct
in interface MessageProcessContext
FlowConstruct
were the incoming message is going to be executed. Can not be nullpublic boolean supportsAsynchronousProcessing()
supportsAsynchronousProcessing
in interface MessageProcessContext
public WorkManager getFlowExecutionWorkManager()
getFlowExecutionWorkManager
in interface MessageProcessContext
WorkManager
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 MessageProcessContext
TransactionConfig
associated to the MessageSource
that received the message.
If null then no transaction config will be used.public ClassLoader getExecutionClassLoader()
getExecutionClassLoader
in interface MessageProcessContext
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.