Class EventPersistenceException

All Implemented Interfaces:
Serializable

public class EventPersistenceException extends EventPublishingException

Exception thrown for server-side (partial) failures of event persistence, e.g. an event can not be stored due to Kafka unavailability.

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

    • EventPersistenceException

      public EventPersistenceException(BatchItemResponse[] responses)