Class UnprocessedEvent<EventT>
- java.lang.Object
-
- org.apache.beam.sdk.extensions.ordered.UnprocessedEvent<EventT>
-
- Type Parameters:
EventT-
public abstract class UnprocessedEvent<EventT> extends java.lang.ObjectCombines the source event which failed to process with the failure reason.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnprocessedEvent.Reason
-
Constructor Summary
Constructors Constructor Description UnprocessedEvent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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 EventTgetEvent()abstract java.lang.StringgetExplanation()abstract UnprocessedEvent.ReasongetReason()
-
-
-
Method Detail
-
create
public static <EventT> UnprocessedEvent<EventT> create(EventT event, UnprocessedEvent.Reason reason)
Create new unprocessed event.- Type Parameters:
EventT- type of the event- Parameters:
event- failed eventreason- for failure- Returns:
-
create
public static <EventT> UnprocessedEvent<EventT> create(EventT event, java.lang.Exception exception)
Create new unprocessed event which failed due to an exception thrown.- Type Parameters:
EventT- type of the event- Parameters:
event- which failedexception- which caused the failure- Returns:
-
getEvent
public abstract EventT getEvent()
-
getReason
public abstract UnprocessedEvent.Reason getReason()
-
getExplanation
@Nullable public abstract java.lang.String getExplanation()
-
-