public class DispatchResultEvent extends AbstractDispatchEvent<DispatchResultEvent>
Constructor and Description |
---|
DispatchResultEvent(String owner,
int[] index,
InvocationContext context,
Map<String,T2Reference> data,
boolean streaming)
Construct a new dispatch result event, specifying the data and whether
the result is part of a stream of multiple results events from a single
invocation
|
Modifier and Type | Method and Description |
---|---|
Map<String,T2Reference> |
getData()
The result contains a map of named EntityIdentifier instances
corresponding to the result data.
|
DispatchMessageType |
getMessageType()
Return the DispatchMessageType for this event object
|
boolean |
isStreamingEvent()
If this result is part of a stream, that is to say multiple result events
from a single job event, then return true otherwise return false.
|
DispatchResultEvent |
popOwningProcess()
Return a copy of the event subclass with the last owning process removed
from the owning process list.
|
DispatchResultEvent |
pushOwningProcess(String localProcessName)
Return a copy of the event subclass with the specified local process name
appended to the owning process identifier field.
|
getContext, getIndex, getOwningProcess, isFinal, popOwner, pushOwner, toString
public DispatchResultEvent(String owner, int[] index, InvocationContext context, Map<String,T2Reference> data, boolean streaming)
owner
- index
- context
- data
- streaming
- public boolean isStreamingEvent()
public Map<String,T2Reference> getData()
public DispatchResultEvent popOwningProcess() throws ProcessIdentifierException
Event
popOwningProcess
in class Event<DispatchResultEvent>
ProcessIdentifierException
public DispatchResultEvent pushOwningProcess(String localProcessName) throws ProcessIdentifierException
Event
pushOwningProcess
in class Event<DispatchResultEvent>
localProcessName
- name to addProcessIdentifierException
- if the local process name contains the ':' characterpublic DispatchMessageType getMessageType()
AbstractDispatchEvent
getMessageType
in class AbstractDispatchEvent<DispatchResultEvent>
DispatchMessageType.RESULT
.Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.