public static interface Event.Builder
| Modifier and Type | Method and Description |
|---|---|
Event.Builder |
addVariable(String key,
Object value)
Add a variable.
|
Event.Builder |
addVariable(String key,
Object value,
org.mule.runtime.api.metadata.DataType mediaType)
Add a variable.
|
Event |
build()
Build a new
Event based on the state configured in the Event.Builder. |
Event.Builder |
correlationId(String correlationId)
Deprecated.
Transport infrastructure is deprecated.
|
Event.Builder |
disableNotifications()
Deprecated.
Transport infrastructure is deprecated.
|
Event.Builder |
error(org.mule.runtime.api.message.Error error)
Sets an error related to the produced event.
|
Event.Builder |
flow(FlowConstruct flow)
Deprecated.
TODO MULE-10013 remove this
|
Event.Builder |
groupCorrelation(GroupCorrelation groupCorrelation)
Sets the group correlation information to the produced event.
|
Event.Builder |
message(org.mule.runtime.api.message.Message message)
Set the
Message to construct Event with. |
Event.Builder |
parameters(Map<String,Object> parameters)
Set a map of parameters to be consumed within a
ModuleOperationMessageProcessorChainBuilder.ModuleOperationProcessorChain. |
Event.Builder |
properties(Map<String,Object> properties)
Set a map of properties to be consumed within a
ModuleOperationMessageProcessorChainBuilder.ModuleOperationProcessorChain. |
Event.Builder |
removeParameter(String key)
Remove a parameter.
|
Event.Builder |
removeVariable(String key)
Remove a variable.
|
Event.Builder |
replyToDestination(Object replyToDestination)
Deprecated.
TODO MULE-10739 Move ReplyToHandler to compatibility module.
|
Event.Builder |
replyToHandler(ReplyToHandler replyToHandler)
Deprecated.
TODO MULE-10739 Move ReplyToHandler to compatibility module.
|
Event.Builder |
session(MuleSession session)
Deprecated.
Transport infrastructure is deprecated.
|
Event.Builder |
variables(Map<String,Object> variables)
Set a map of variables.
|
Event.Builder message(org.mule.runtime.api.message.Message message)
Message to construct Event with.message - the message instance.Event.Builder variables(Map<String,Object> variables)
variables - variables to be set.Event.Builder addVariable(String key, Object value)
key - the key of the variable to add.value - the value of the variable to add. null values are supported.Event.Builder addVariable(String key, Object value, org.mule.runtime.api.metadata.DataType mediaType)
key - the key of the variable to add.value - the value of the variable to add. null values are supported.mediaType - additional metadata about the value type.Event.Builder removeVariable(String key)
key - the variable key.Event.Builder properties(Map<String,Object> properties)
ModuleOperationMessageProcessorChainBuilder.ModuleOperationProcessorChain.
For every module's Event, so that we can guarantee that for each invocation there's a real variable
scoping for them.
properties - properties to be set.parameters(Map)Event.Builder parameters(Map<String,Object> parameters)
ModuleOperationMessageProcessorChainBuilder.ModuleOperationProcessorChain.
For every module's Event, so that we can guarantee that for each invocation there's a real variable
scoping for them.
parameters - parameters to be set.properties(Map)Event.Builder removeParameter(String key)
key - the parameter key.parameters(Map)@Deprecated Event.Builder correlationId(String correlationId)
EventContext.getCorrelationId() that came from the source
system or that was configured in the connector source. This is only used to support transports and should not be used
otherwise.correlationId - to override existing correlationIdEvent.Builder groupCorrelation(GroupCorrelation groupCorrelation)
groupCorrelation - the object containing the group correlation information to set on the produced eventEvent.Builder error(org.mule.runtime.api.message.Error error)
error - the error associated with the produced event@Deprecated Event.Builder replyToHandler(ReplyToHandler replyToHandler)
replyToHandler - @Deprecated Event.Builder replyToDestination(Object replyToDestination)
replyToDestination - @Deprecated Event.Builder flow(FlowConstruct flow)
flow - @Deprecated Event.Builder disableNotifications()
@Deprecated Event.Builder session(MuleSession session)
session - Event build()
Event based on the state configured in the Event.Builder.Event instance.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.