public class EventResult extends Object
event processing.
Instances can contain future events and additional
data to for record purposes.| Constructor and Description |
|---|
EventResult(List<Event> nextEvents)
Constructor for successful results containing
future events
without any additional data to record. |
EventResult(Serializable data,
Event nextEvent)
Constructor for successful results containing a
future event
with additional data to record. |
EventResult(Serializable data,
List<Event> nextEvents)
Constructor for successful results containing
future events
with additional data to record. |
EventResult(Serializable data,
List<Event> nextEvents,
boolean success)
Constructor for results containing
future events
with additional data to record. |
public EventResult(List<Event> nextEvents)
future events
without any additional data to record.nextEvents - any events that now follow on the processed event (may be empty)public EventResult(Serializable data, List<Event> nextEvents)
future events
with additional data to record.data - additional data to record (e.g. a Throwable)nextEvents - any events that now follow on the processed event (may be empty)public EventResult(Serializable data, Event nextEvent)
future event
with additional data to record.data - additional data to record (e.g. a Throwable)nextEvent - the event that now follow on the processed event (never null)public EventResult(Serializable data, List<Event> nextEvents, boolean success)
future events
with additional data to record.data - additional data to record (e.g. a Throwable)nextEvents - any events that now follow on the processed event (may be empty)success - true if the result represents a successful operationpublic Serializable getData()
public List<Event> getNextEvents()
public boolean isSuccess()
Copyright © 2012. All Rights Reserved.