Class EventBatcher


  • public class EventBatcher
    extends Object
    • Method Detail

      • pushEvent

        public void pushEvent​(EventLog eventLogEntry,
                              NakadiEvent nakadiEvent)
        Pushes one event to be published. It will be either published right now, or with some other events, latest when calling finish().
        Parameters:
        eventLogEntry - The event log entry for this event.
        nakadiEvent - The Nakadi form of the event.
      • finish

        public void finish()
        Publishes all events which were pushed and not yet published.