Class EventPersistenceException

All Implemented Interfaces:
Serializable

public class EventPersistenceException extends RawEventPersistenceException

Exception thrown for server-side (partial) failures of event persistence, e.g. an event can not be stored due to Kafka unavailability, maintaining a reference to the batch of input events.

The exception contains an array of all BatchItemResponses, independent of their status. There is an ordering guarantee from Nakadi, so that you can correlate the elements in the response with your input batch, and potentially retry only the failed or aborted events. Every record includes the eid (BatchItemResponse.getEid()) which can also be used to identify the event.

See Also:
  • Constructor Details

  • Method Details

    • getInputEvents

      public List<?> getInputEvents()