public interface MessageProcessContext
MessageSource.
Mule MessageSource implementations should create one instance of MessageProcessContext
per message that generates.
MessageProcessContext is responsible for - Define if the incoming message can be processed in a separate thread - Provide
access to the MessageSource of the message - Provide access to the FlowConstruct were the message is going to
be executed - Provide access, if available, to the Executor to use for processing the message - Provide the
MessageSource transaction configuration| Modifier and Type | Method and Description |
|---|---|
ErrorTypeLocator |
getErrorTypeLocator() |
ClassLoader |
getExecutionClassLoader() |
FlowConstruct |
getFlowConstruct() |
Executor |
getFlowExecutionExecutor() |
MessageSource |
getMessageSource() |
Optional<TransactionConfig> |
getTransactionConfig() |
boolean |
supportsAsynchronousProcessing() |
boolean supportsAsynchronousProcessing()
MessageSource getMessageSource()
MessageSource that retrieve the message. Can not be nullFlowConstruct getFlowConstruct()
FlowConstruct were the incoming message is going to be executed. Can not be nullExecutor getFlowExecutionExecutor()
Executor were the incoming message must be processed. If null it will be executed in the same thread were
the message was receivedOptional<TransactionConfig> getTransactionConfig()
TransactionConfig associated to the MessageSource that received the message. If Optional.empty() then no
transaction config will be used.ClassLoader getExecutionClassLoader()
ErrorTypeLocator getErrorTypeLocator()
ErrorTypeLocator for this contextCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.