public interface Emitter
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(TrackerPayload payload)
Adds a payload to the buffer and checks whether
 we have reached the buffer limit yet. 
 | 
void | 
close()
Safely shuts down the Emitter. 
 | 
void | 
flushBuffer()
This can be used to manually send all buffered events. 
 | 
int | 
getBatchSize()
Gets the Emitter Batch Size 
 | 
java.util.List<TrackerPayload> | 
getBuffer()
Returns the List of Payloads that are in the buffer. 
 | 
void | 
setBatchSize(int batchSize)
Customize the emitter batch size to any valid integer
 greater than zero. 
 | 
boolean add(TrackerPayload payload)
payload - a payload to be emittedvoid setBatchSize(int batchSize)
batchSize - number of events to collect before
                   sendingvoid flushBuffer()
int getBatchSize()
java.util.List<TrackerPayload> getBuffer()
void close()