public interface Emitter
| Modifier and Type | Method and Description |
|---|---|
void |
emit(TrackerEvent event)
Adds an event to the buffer and checks whether
we have reached the buffer limit yet.
|
void |
flushBuffer()
When the buffer limit is reached sending of the buffer is
initiated.
|
java.util.List<TrackerEvent> |
getBuffer()
Returns the List of Events that are in the buffer.
|
int |
getBufferSize()
Gets the Emitter Buffer Size
- Will always be 1 for SimpleEmitter
|
void |
setBufferSize(int bufferSize)
Customize the emitter buffer size to any valid integer
greater than zero.
|
void emit(TrackerEvent event)
event - an event to be emittedvoid setBufferSize(int bufferSize)
bufferSize - number of events to collect before
sendingvoid flushBuffer()
int getBufferSize()
java.util.List<TrackerEvent> getBuffer()