public static interface CoreEvent.Builder
CoreEvent.Builder message(Message message)
message
- the message instance.CoreEvent.Builder variables(Map<String,?> variables)
variables
- variables to be set.CoreEvent.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.CoreEvent.Builder addVariable(String key, Object value, 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.CoreEvent.Builder removeVariable(String key)
key
- the variable key.CoreEvent.Builder groupCorrelation(Optional<GroupCorrelation> groupCorrelation)
itemSequenceInfo(Optional)
} insteadgroupCorrelation
- the object containing the group correlation information to set on the produced eventdefault CoreEvent.Builder itemSequenceInfo(Optional<ItemSequenceInfo> itemSequenceInfo)
itemSequenceInfo
- the object containing the sequence information of the produced eventCoreEvent.Builder error(Error error)
error
- the error associated with the produced eventCoreEvent.Builder securityContext(SecurityContext securityContext)
securityContext
- the context for this session or null if the request is not secure.CoreEvent build()
CoreEvent
based on the state configured in the CoreEvent.Builder
.CoreEvent
instance.Copyright © 2018. All rights reserved.