Class UnprocessedEvent<EventT>
java.lang.Object
org.apache.beam.sdk.extensions.ordered.UnprocessedEvent<EventT>
- Type Parameters:
EventT
-
Combines the source event which failed to process with the failure reason.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <EventT> UnprocessedEvent
<EventT> 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 String
abstract UnprocessedEvent.Reason
-
Constructor Details
-
UnprocessedEvent
public UnprocessedEvent()
-
-
Method Details
-
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
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
-
getReason
-
getExplanation
-