Interface EventPreview
- All Known Implementing Classes:
EventPreview.Failure, EventPreview.Success
Holds a preview of the payload.
The previewed payload is either:
- the last event emitted by the Source stage — see
EventStreamRunConfig.sourcePreview() - or the output of a Transform replaying that event, see
EventStreamRunConfig.transformPreview(boolean).
The preview is either:
EventPreview.Success: carrying the encoded data and metadataEventPreview.Failure: carrying the reason there is nothing to show.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordWhy there is no event to preview.static final classstatic final recordA successfully encoded event. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic EventPreview.Successsuccess(String encoderTypeId, EventPayload event) A preview ofevent, whose data an encoder has already rendered.
-
Method Details
-
success
A preview of
event, whose data an encoder has already rendered.Raw
byte[]data is Base64-encoded so it survives JSON transport readably; everything else uses its string form.- Parameters:
encoderTypeId- type id of the encoder that producedevent's dataevent- the encoded event to report
-