Class FlushedEventBuffer

java.lang.Object
com.espertech.esper.common.internal.event.core.FlushedEventBuffer

public class FlushedEventBuffer extends Object
Buffer for events - accumulates events until flushed.
  • Constructor Details

    • FlushedEventBuffer

      public FlushedEventBuffer()
  • Method Details

    • add

      public void add(EventBean[] events)
      Add an event array to buffer.
      Parameters:
      events - to add
    • getAndFlush

      public EventBean[] getAndFlush()
      Get the events currently buffered. Returns null if the buffer is empty. Flushes the buffer.
      Returns:
      array of events in buffer or null if empty
    • flush

      public void flush()
      Empty buffer.