Class FlushedEventBuffer
java.lang.Object
com.espertech.esper.common.internal.event.core.FlushedEventBuffer
Buffer for events - accumulates events until flushed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an event array to buffer.void
flush()
Empty buffer.Get the events currently buffered.
-
Constructor Details
-
FlushedEventBuffer
public FlushedEventBuffer()
-
-
Method Details
-
add
Add an event array to buffer.- Parameters:
events
- to add
-
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.
-