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 WorkManager to use for processing the message
- Provide the MessageSource transaction configuration| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getExecutionClassLoader() |
FlowConstruct |
getFlowConstruct() |
WorkManager |
getFlowExecutionWorkManager() |
MessageSource |
getMessageSource() |
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 nullWorkManager getFlowExecutionWorkManager()
WorkManager were the incoming message must be processed.
If null it will be executed in the same thread were the message was receivedTransactionConfig getTransactionConfig()
TransactionConfig associated to the MessageSource that received the message.
If null then no transaction config will be used.ClassLoader getExecutionClassLoader()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.