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(Object data,
boolean success)
Constructor for results containing no future events.
|
EventResult(Object data,
Event nextEvent)
Constructor for successful results containing a
future event
with additional data to record. |
EventResult(Object data,
List<Event> nextEvents)
Constructor for successful results containing
future events
with additional data to record. |
EventResult(Object 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(Object 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(Object 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(Object data, boolean success)
data
- additional data to record (e.g. a Throwable
)success
- true if the result represents a successful operationpublic EventResult(Object 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 Object getData()
public List<Event> getNextEvents()
public boolean isSuccess()
Copyright © 2014. All rights reserved.