EventT
- public abstract class UnprocessedEvent<EventT>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UnprocessedEvent.Reason |
Constructor and Description |
---|
UnprocessedEvent() |
Modifier and Type | Method and Description |
---|---|
static <EventT> UnprocessedEvent<EventT> |
create(EventT event,
java.lang.Exception exception)
Create new unprocessed event which failed due to an exception thrown.
|
static <EventT> UnprocessedEvent<EventT> |
create(EventT event,
UnprocessedEvent.Reason reason)
Create new unprocessed event.
|
abstract EventT |
getEvent() |
abstract java.lang.String |
getExplanation() |
abstract UnprocessedEvent.Reason |
getReason() |
public static <EventT> UnprocessedEvent<EventT> create(EventT event, UnprocessedEvent.Reason reason)
EventT
- type of the eventevent
- failed eventreason
- for failurepublic static <EventT> UnprocessedEvent<EventT> create(EventT event, java.lang.Exception exception)
EventT
- type of the eventevent
- which failedexception
- which caused the failurepublic abstract EventT getEvent()
public abstract UnprocessedEvent.Reason getReason()
@Nullable public abstract java.lang.String getExplanation()