public class DefaultMuleEvent extends Object implements MuleEvent, ThreadSafeAccess, DeserializationPostInitialisable
DefaultMuleEvent
represents any data event occurring in the Mule environment. All data sent or
received within the Mule environment will be passed between components as an MuleEvent.
The MuleEvent holds some data and provides helper methods for obtaining the data in a format that the
receiving Mule component understands. The event can also maintain any number of flowVariables that can be
set and retrieved by Mule components.ThreadSafeAccess.AccessControl
DeserializationPostInitialisable.Implementation
Modifier and Type | Field and Description |
---|---|
protected String[] |
ignoredPropertyOverrides |
TIMEOUT_DO_NOT_WAIT, TIMEOUT_NOT_SET_VALUE, TIMEOUT_WAIT_FOREVER
READ, WRITE
Modifier | Constructor and Description |
---|---|
|
DefaultMuleEvent(MuleEvent rewriteEvent,
FlowConstruct flowConstruct) |
|
DefaultMuleEvent(MuleEvent rewriteEvent,
FlowConstruct flowConstruct,
ReplyToHandler replyToHandler,
Object replyToDestination) |
|
DefaultMuleEvent(MuleEvent rewriteEvent,
FlowConstruct flowConstruct,
ReplyToHandler replyToHandler,
Object replyToDestination,
boolean synchronous) |
|
DefaultMuleEvent(MuleEvent rewriteEvent,
ReplyToHandler replyToHandler)
Copy constructor used when ReplyToHandler instance needs switching out
|
|
DefaultMuleEvent(MuleMessage message,
InboundEndpoint endpoint,
FlowConstruct flowConstruct) |
|
DefaultMuleEvent(MuleMessage message,
InboundEndpoint endpoint,
FlowConstruct flowConstruct,
MuleSession session) |
|
DefaultMuleEvent(MuleMessage message,
InboundEndpoint endpoint,
FlowConstruct flowConstruct,
MuleSession session,
ReplyToHandler replyToHandler,
Object replyToDestination,
OutputStream outputStream) |
|
DefaultMuleEvent(MuleMessage message,
InboundEndpoint endpoint,
MuleSession session)
Deprecated.
|
|
DefaultMuleEvent(MuleMessage message,
InboundEndpoint endpoint,
MuleSession session,
ReplyToHandler replyToHandler,
OutputStream outputStream,
Object replyToDestination)
Deprecated.
|
|
DefaultMuleEvent(MuleMessage message,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct)
Constructor used to create an event with no message source with minimal arguments
|
|
DefaultMuleEvent(MuleMessage message,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct,
MuleSession session)
Constructor used to create an event with no message source with minimal arguments and a
MuleSession |
|
DefaultMuleEvent(MuleMessage message,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct,
MuleSession session,
int timeout,
Credentials credentials,
OutputStream outputStream)
Constructor used to create an event with no message source with all additional arguments
|
|
DefaultMuleEvent(MuleMessage message,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct,
MuleSession session,
OutputStream outputStream)
Constructor used to create an event with no message source with minimal arguments and
OutputStream
|
|
DefaultMuleEvent(MuleMessage message,
MessageExchangePattern exchangePattern,
MuleSession session)
Deprecated.
|
|
DefaultMuleEvent(MuleMessage message,
MessageExchangePattern exchangePattern,
MuleSession session,
int timeout,
Credentials credentials,
OutputStream outputStream)
Deprecated.
|
|
DefaultMuleEvent(MuleMessage message,
MessageExchangePattern exchangePattern,
MuleSession session,
OutputStream outputStream)
Deprecated.
|
|
DefaultMuleEvent(MuleMessage message,
MessageExchangePattern exchangePattern,
ReplyToHandler replyToHandler,
FlowConstruct flowConstruct)
Constructor used to create an event with no message source with minimal arguments and a
ReplyToHandler |
|
DefaultMuleEvent(MuleMessage message,
MuleEvent rewriteEvent)
A helper constructor used to rewrite an event payload
|
|
DefaultMuleEvent(MuleMessage message,
MuleEvent rewriteEvent,
boolean synchronus) |
|
DefaultMuleEvent(MuleMessage message,
MuleEvent rewriteEvent,
boolean synchronus,
boolean shareFlowVars) |
|
DefaultMuleEvent(MuleMessage message,
MuleEvent rewriteEvent,
boolean synchronus,
boolean shareFlowVars,
MessageExchangePattern messageExchangePattern)
Copy constructor to be used when synchronicity and
MessageExchangePattern both need changing. |
protected |
DefaultMuleEvent(MuleMessage message,
MuleEvent rewriteEvent,
FlowConstruct flowConstruct,
MuleSession session,
boolean synchronous) |
protected |
DefaultMuleEvent(MuleMessage message,
MuleEvent rewriteEvent,
FlowConstruct flowConstruct,
MuleSession session,
boolean synchronous,
boolean shareFlowVars,
MessageExchangePattern messageExchangePattern) |
protected |
DefaultMuleEvent(MuleMessage message,
MuleEvent rewriteEvent,
FlowConstruct flowConstruct,
MuleSession session,
boolean synchronous,
ReplyToHandler replyToHandler,
Object replyToDestination,
boolean shareFlowVars,
MessageExchangePattern messageExchangePattern) |
|
DefaultMuleEvent(MuleMessage message,
MuleEvent rewriteEvent,
MuleSession session)
A helper constructor used to rewrite an event payload
|
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct,
MuleSession session)
Constructor used to create an event with a uri that idendifies the message source with minimal
arguments
|
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct,
MuleSession session,
int timeout,
Credentials credentials,
OutputStream outputStream)
Constructor used to create an event with a identifiable message source with all additional arguments except
a
ReplyToHandler |
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct,
MuleSession session,
int timeout,
Credentials credentials,
OutputStream outputStream,
ReplyToHandler replyToHandler)
Constructor used to create an event with a identifiable message source with all additional arguments
|
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct,
MuleSession session,
OutputStream outputStream)
Constructor used to create an event with a uri that idendifies the message source with minimal
arguments and OutputStream
|
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
MessageExchangePattern exchangePattern,
MuleSession session)
Deprecated.
|
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
MessageExchangePattern exchangePattern,
MuleSession session,
int timeout,
Credentials credentials,
OutputStream outputStream)
Deprecated.
|
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
MessageExchangePattern exchangePattern,
MuleSession session,
OutputStream outputStream)
Deprecated.
|
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
String messageSourceName,
MessageExchangePattern exchangePattern,
FlowConstruct flowConstruct,
MuleSession session,
int timeout,
Credentials credentials,
OutputStream outputStream,
String encoding,
boolean transacted,
boolean synchronous,
Object replyToDestination,
ReplyToHandler replyToHandler) |
|
DefaultMuleEvent(MuleMessage message,
URI messageSourceURI,
String messageSourceName,
MessageExchangePattern exchangePattern,
MuleSession session,
int timeout,
Credentials credentials,
OutputStream outputStream,
String encoding,
boolean transacted,
boolean synchronous,
Object replyToDestination,
ReplyToHandler replyToHandler)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
assertAccess(boolean write)
This method may be called before data in the object are accessed.
|
void |
captureReplyToDestination()
Set the reply-to destination from the current message, and remove it from the message, to prevent any
further propagation.
|
void |
clearFlowVariables() |
void |
clearSessionVariables() |
static MuleEvent |
copy(MuleEvent event)
This method does a complete deep copy of the event.
|
boolean |
equals(Object o) |
protected Credentials |
extractCredentials(InboundEndpoint endpoint) |
protected void |
fillProperties(InboundEndpoint endpoint) |
protected String |
generateEventId(MuleContext context) |
Credentials |
getCredentials() |
String |
getEncoding()
Gets the encoding for this message.
|
MessageExchangePattern |
getExchangePattern()
Returns the message exchange pattern for this event
|
FlowCallStack |
getFlowCallStack()
Events have a stack of executed flows (same as a call stack), so that at any given instant an application
developer can determine where this event came from.
|
FlowConstruct |
getFlowConstruct()
Gets the recipient service of this event
|
<T> T |
getFlowVariable(String key) |
DataType<?> |
getFlowVariableDataType(String key)
Gets the data type for a given flow variable
|
Set<String> |
getFlowVariableNames() |
String |
getId()
Every event in the system is assigned a universally unique id (UUID).
|
MuleMessage |
getMessage()
Returns the message payload for this event
|
byte[] |
getMessageAsBytes()
Returns the contents of the message as a byte array.
|
String |
getMessageAsString()
Returns the message contents as a string If necessary this will use the encoding set on the event
|
String |
getMessageAsString(String encoding)
Returns the message contents for logging
|
String |
getMessageSourceName()
Returns the message source name if it has one, otherwise returns toString() of the URI returned be
getMessageSourceURI()
|
URI |
getMessageSourceURI()
Returns the
URI of the MessageSource that recieved or generated the message being processed. |
MuleContext |
getMuleContext()
Returns the muleContext for the Mule node that this event was received in
|
OutputStream |
getOutputStream()
An output stream can optionally be used to write response data to an incoming message.
|
ProcessingTime |
getProcessingTime()
Returns the times spent processing this event (so far)
|
ProcessorsTrace |
getProcessorsTrace()
Events have a list of message processor paths it went trough so that the execution path of an event can be
reconstructed after it has executed.
|
Object |
getProperty(String name)
Deprecated.
use appropriate scope-aware calls on the MuleMessage (via event.getMessage())
|
Object |
getProperty(String name,
Object defaultValue)
Deprecated.
use appropriate scope-aware calls on the MuleMessage (via event.getMessage())
|
Object |
getReplyToDestination()
Return the destination (if any) that will be passed to the reply-to handler.
|
ReplyToHandler |
getReplyToHandler()
Return the replyToHandler (if any) that will be used to perform async reply
|
MuleSession |
getSession()
Retrieves the service session for the current event
|
<T> T |
getSessionVariable(String key) |
DataType<?> |
getSessionVariableDataType(String key)
Gets the data type for a given session variable
|
Set<String> |
getSessionVariableNames() |
int |
getTimeout()
The number of milliseconds to wait for a return event when running synchronously.
|
int |
hashCode() |
protected boolean |
ignoreProperty(String key)
This method is used to determine if a property on the previous event should be ignored for the next
event.
|
boolean |
isAllowNonBlocking()
Indicates if the current event allows non-blocking execution and IO.
|
boolean |
isNotificationsEnabled()
Indicates if notifications should be fired when processing this message.
|
boolean |
isStopFurtherProcessing()
Determines whether the default processing for this event will be executed
|
boolean |
isSynchronous() |
boolean |
isTransacted()
Returns true is this event is being processed in a transaction
|
ThreadSafeAccess |
newThreadCopy() |
void |
removeFlowVariable(String key) |
void |
removeSessionVariable(String key) |
void |
resetAccessControl()
This method should ONLY be used in the construction of composite ThreadSafeAccess instances.
|
protected boolean |
resolveEventSynchronicity() |
void |
setEnableNotifications(boolean enabled)
Enables the firing of notifications when processing the message.
|
void |
setFlowVariable(String key,
Object value)
Sets a session variable value with a default data type
|
void |
setFlowVariable(String key,
Object value,
DataType dataType)
Sets a flow variable value with a given data type
|
void |
setMessage(MuleMessage message) |
void |
setSessionVariable(String key,
Object value)
Sets a session variable value with a default data type
|
void |
setSessionVariable(String key,
Serializable value,
DataType dataType)
Sets a session variable value with a given data type
|
void |
setStopFurtherProcessing(boolean stopFurtherProcessing)
Setting this parameter will stop the Mule framework from processing this event in the standard way.
|
void |
setTimeout(int timeout)
The number of milliseconds to wait for a return event when running synchronously.
|
void |
setTransientServiceName(Object serviceName)
Used to fetch the
flowConstruct after deserealization since its a
transient value. |
String |
toString() |
Object |
transformMessage()
Deprecated.
|
<T> T |
transformMessage(Class<T> outputType)
Transforms the message into the requested format.
|
<T> T |
transformMessage(DataType<T> outputType)
Transforms the message into the requested format.
|
byte[] |
transformMessageToBytes()
Deprecated.
|
String |
transformMessageToString()
Returns the message transformed into it's recognised or expected format and then into a String.
|
protected String[] ignoredPropertyOverrides
public DefaultMuleEvent(MuleMessage message, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct, MuleSession session)
MuleSession
public DefaultMuleEvent(MuleMessage message, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct)
public DefaultMuleEvent(MuleMessage message, MessageExchangePattern exchangePattern, ReplyToHandler replyToHandler, FlowConstruct flowConstruct)
ReplyToHandler
public DefaultMuleEvent(MuleMessage message, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct, MuleSession session, OutputStream outputStream)
public DefaultMuleEvent(MuleMessage message, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct, MuleSession session, int timeout, Credentials credentials, OutputStream outputStream)
public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct, MuleSession session)
public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct, MuleSession session, OutputStream outputStream)
public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct, MuleSession session, int timeout, Credentials credentials, OutputStream outputStream, ReplyToHandler replyToHandler)
public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct, MuleSession session, int timeout, Credentials credentials, OutputStream outputStream)
ReplyToHandler
public DefaultMuleEvent(MuleMessage message, InboundEndpoint endpoint, FlowConstruct flowConstruct, MuleSession session)
public DefaultMuleEvent(MuleMessage message, InboundEndpoint endpoint, FlowConstruct flowConstruct)
public DefaultMuleEvent(MuleMessage message, InboundEndpoint endpoint, FlowConstruct flowConstruct, MuleSession session, ReplyToHandler replyToHandler, Object replyToDestination, OutputStream outputStream)
public DefaultMuleEvent(MuleMessage message, MuleEvent rewriteEvent)
message
- The message to use as the current payload of the eventrewriteEvent
- the previous event that will be used as a template for this eventpublic DefaultMuleEvent(MuleEvent rewriteEvent, FlowConstruct flowConstruct)
public DefaultMuleEvent(MuleEvent rewriteEvent, ReplyToHandler replyToHandler)
rewriteEvent
- replyToHandler
- public DefaultMuleEvent(MuleEvent rewriteEvent, FlowConstruct flowConstruct, ReplyToHandler replyToHandler, Object replyToDestination)
public DefaultMuleEvent(MuleEvent rewriteEvent, FlowConstruct flowConstruct, ReplyToHandler replyToHandler, Object replyToDestination, boolean synchronous)
public DefaultMuleEvent(MuleMessage message, MuleEvent rewriteEvent, boolean synchronus)
public DefaultMuleEvent(MuleMessage message, MuleEvent rewriteEvent, boolean synchronus, boolean shareFlowVars)
public DefaultMuleEvent(MuleMessage message, MuleEvent rewriteEvent, boolean synchronus, boolean shareFlowVars, MessageExchangePattern messageExchangePattern)
MessageExchangePattern
both need changing.public DefaultMuleEvent(MuleMessage message, MuleEvent rewriteEvent, MuleSession session)
message
- The message to use as the current payload of the eventrewriteEvent
- the previous event that will be used as a template for this eventprotected DefaultMuleEvent(MuleMessage message, MuleEvent rewriteEvent, FlowConstruct flowConstruct, MuleSession session, boolean synchronous)
protected DefaultMuleEvent(MuleMessage message, MuleEvent rewriteEvent, FlowConstruct flowConstruct, MuleSession session, boolean synchronous, boolean shareFlowVars, MessageExchangePattern messageExchangePattern)
protected DefaultMuleEvent(MuleMessage message, MuleEvent rewriteEvent, FlowConstruct flowConstruct, MuleSession session, boolean synchronous, ReplyToHandler replyToHandler, Object replyToDestination, boolean shareFlowVars, MessageExchangePattern messageExchangePattern)
public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, String messageSourceName, MessageExchangePattern exchangePattern, FlowConstruct flowConstruct, MuleSession session, int timeout, Credentials credentials, OutputStream outputStream, String encoding, boolean transacted, boolean synchronous, Object replyToDestination, ReplyToHandler replyToHandler)
@Deprecated public DefaultMuleEvent(MuleMessage message, MessageExchangePattern exchangePattern, MuleSession session)
@Deprecated public DefaultMuleEvent(MuleMessage message, MessageExchangePattern exchangePattern, MuleSession session, OutputStream outputStream)
@Deprecated public DefaultMuleEvent(MuleMessage message, MessageExchangePattern exchangePattern, MuleSession session, int timeout, Credentials credentials, OutputStream outputStream)
@Deprecated public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, MessageExchangePattern exchangePattern, MuleSession session)
@Deprecated public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, MessageExchangePattern exchangePattern, MuleSession session, OutputStream outputStream)
@Deprecated public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, MessageExchangePattern exchangePattern, MuleSession session, int timeout, Credentials credentials, OutputStream outputStream)
@Deprecated public DefaultMuleEvent(MuleMessage message, InboundEndpoint endpoint, MuleSession session)
@Deprecated public DefaultMuleEvent(MuleMessage message, InboundEndpoint endpoint, MuleSession session, ReplyToHandler replyToHandler, OutputStream outputStream, Object replyToDestination)
@Deprecated public DefaultMuleEvent(MuleMessage message, URI messageSourceURI, String messageSourceName, MessageExchangePattern exchangePattern, MuleSession session, int timeout, Credentials credentials, OutputStream outputStream, String encoding, boolean transacted, boolean synchronous, Object replyToDestination, ReplyToHandler replyToHandler)
protected boolean resolveEventSynchronicity()
protected void fillProperties(InboundEndpoint endpoint)
protected boolean ignoreProperty(String key)
key
- The name of the property to ignoreprotected Credentials extractCredentials(InboundEndpoint endpoint)
public Credentials getCredentials()
getCredentials
in interface MuleEvent
public MuleMessage getMessage()
MuleEvent
getMessage
in interface MuleEvent
public byte[] getMessageAsBytes() throws DefaultMuleException
MuleEvent
getMessageAsBytes
in interface MuleEvent
DefaultMuleException
public <T> T transformMessage(Class<T> outputType) throws TransformerException
MuleEvent
transformMessage
in interface MuleEvent
outputType
- The requested output type.TransformerException
- if a failure occurs in the transformerif the transform fails or the outputtype is null
public <T> T transformMessage(DataType<T> outputType) throws TransformerException
MuleEvent
transformMessage
in interface MuleEvent
outputType
- The requested output type.TransformerException
- if a failure occurs in the transformerif the transform fails or the outputtype is null
@Deprecated public byte[] transformMessageToBytes() throws TransformerException
transformMessage(org.mule.api.transformer.DataType)
insteadtransformMessageToBytes
in interface MuleEvent
TransformerException
- if an unsupported encoding is being used or if the result message is not a
String byte[] or Seializable objectTransformer
public String transformMessageToString() throws TransformerException
transformMessageToString
in interface MuleEvent
TransformerException
- if a failure occurs in the transformerTransformer
public String getMessageAsString() throws MuleException
MuleEvent
getMessageAsString
in interface MuleEvent
MuleException
- if the message cannot be converted into a stringpublic String getMessageAsString(String encoding) throws MuleException
getMessageAsString
in interface MuleEvent
encoding
- the encoding to use when converting bytes to a string, if necessaryMuleException
- if the message cannot be converted into a stringpublic String getId()
MuleEvent
@Deprecated public Object getProperty(String name)
MuleEvent
getProperty
in interface MuleEvent
name
- the property namegetMessage()
@Deprecated public Object getProperty(String name, Object defaultValue)
MuleEvent
getProperty
in interface MuleEvent
name
- the property namedefaultValue
- a default value if the property doesn't exist in the eventgetMessage()
protected String generateEventId(MuleContext context)
public MuleSession getSession()
MuleEvent
getSession
in interface MuleEvent
public FlowConstruct getFlowConstruct()
getFlowConstruct
in interface MuleEvent
public boolean isStopFurtherProcessing()
isStopFurtherProcessing
in interface MuleEvent
MuleContext
,
MuleEventContext
,
Callable
public void setStopFurtherProcessing(boolean stopFurtherProcessing)
setStopFurtherProcessing
in interface MuleEvent
stopFurtherProcessing
- The stopFurtherProcessing to set.public int getTimeout()
MuleEvent
getTimeout
in interface MuleEvent
public void setTimeout(int timeout)
MuleEvent
setTimeout
in interface MuleEvent
timeout
- the event timeout in millisecondspublic OutputStream getOutputStream()
getOutputStream
in interface MuleEvent
public String getEncoding()
getEncoding
in interface MuleEvent
public MuleContext getMuleContext()
MuleEvent
getMuleContext
in interface MuleEvent
public ThreadSafeAccess newThreadCopy()
newThreadCopy
in interface ThreadSafeAccess
public void resetAccessControl()
ThreadSafeAccess
resetAccessControl
in interface ThreadSafeAccess
public void assertAccess(boolean write)
ThreadSafeAccess
assertAccess
in interface ThreadSafeAccess
write
- True if the access will mutate values.@Deprecated public Object transformMessage() throws TransformerException
MuleEvent
transformMessage
in interface MuleEvent
TransformerException
- if a failure occurs in the transformerTransformer
public ProcessingTime getProcessingTime()
MuleEvent
getProcessingTime
in interface MuleEvent
public MessageExchangePattern getExchangePattern()
MuleEvent
getExchangePattern
in interface MuleEvent
public boolean isTransacted()
MuleEvent
isTransacted
in interface MuleEvent
public URI getMessageSourceURI()
MuleEvent
URI
of the MessageSource that recieved or generated the message being processed.getMessageSourceURI
in interface MuleEvent
public String getMessageSourceName()
MuleEvent
getMessageSourceName
in interface MuleEvent
public ReplyToHandler getReplyToHandler()
MuleEvent
getReplyToHandler
in interface MuleEvent
public Object getReplyToDestination()
MuleEvent
getReplyToDestination
in interface MuleEvent
public void captureReplyToDestination()
MuleEvent
captureReplyToDestination
in interface MuleEvent
public boolean isSynchronous()
isSynchronous
in interface MuleEvent
public void setTransientServiceName(Object serviceName)
flowConstruct
after deserealization since its a
transient value. This is not part of the public API and should only be used
internally for serialization/deserializationserviceName
- the name of the servicepublic void setMessage(MuleMessage message)
setMessage
in interface MuleEvent
public static MuleEvent copy(MuleEvent event)
event
- the event that must be copiedpublic Set<String> getFlowVariableNames()
getFlowVariableNames
in interface MuleEvent
public void clearFlowVariables()
clearFlowVariables
in interface MuleEvent
public <T> T getFlowVariable(String key)
getFlowVariable
in interface MuleEvent
public DataType<?> getFlowVariableDataType(String key)
MuleEvent
getFlowVariableDataType
in interface MuleEvent
public void setFlowVariable(String key, Object value)
MuleEvent
setFlowVariable
in interface MuleEvent
key
- the name or key of the variable. This must be non-null.value
- value for the variablepublic void setFlowVariable(String key, Object value, DataType dataType)
MuleEvent
setFlowVariable
in interface MuleEvent
key
- the name or key of the variable. This must be non-null.value
- value for the variabledataType
- value's dataType. Not null.public void removeFlowVariable(String key)
removeFlowVariable
in interface MuleEvent
public <T> T getSessionVariable(String key)
getSessionVariable
in interface MuleEvent
public DataType<?> getSessionVariableDataType(String key)
MuleEvent
getSessionVariableDataType
in interface MuleEvent
key
- the name or key of the variable. This must be non-null.public void setSessionVariable(String key, Object value)
MuleEvent
setSessionVariable
in interface MuleEvent
key
- the name or key of the variable. This must be non-null.public void setSessionVariable(String key, Serializable value, DataType dataType)
MuleEvent
setSessionVariable
in interface MuleEvent
key
- the name or key of the variable. This must be non-null.value
- value for the variabledataType
- value's dataType. Not null.public void removeSessionVariable(String key)
removeSessionVariable
in interface MuleEvent
public Set<String> getSessionVariableNames()
getSessionVariableNames
in interface MuleEvent
public void clearSessionVariables()
clearSessionVariables
in interface MuleEvent
public boolean isNotificationsEnabled()
MuleEvent
isNotificationsEnabled
in interface MuleEvent
public void setEnableNotifications(boolean enabled)
MuleEvent
setEnableNotifications
in interface MuleEvent
public boolean isAllowNonBlocking()
MuleEvent
isAllowNonBlocking
in interface MuleEvent
public FlowCallStack getFlowCallStack()
MuleEvent
DefaultMuleConfiguration.isFlowTrace()
is true
. If false
,
the stack will always be empty.getFlowCallStack
in interface MuleEvent
public ProcessorsTrace getProcessorsTrace()
MuleEvent
DefaultMuleConfiguration.isFlowTrace()
is true
. If false
,
the list will always be empty.getProcessorsTrace
in interface MuleEvent
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.