Interface EventPreview

All Known Implementing Classes:
EventPreview.Failure, EventPreview.Success

public sealed interface EventPreview permits EventPreview.Success, EventPreview.Failure

Holds a preview of the payload.

The previewed payload is either:

The preview is either:

  • Method Details

    • success

      static EventPreview.Success success(String encoderTypeId, EventPayload event)

      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 produced event's data
      event - the encoded event to report