public interface EventStore
Modifier and Type | Method and Description |
---|---|
boolean |
addEvent(TrackerPayload trackerPayload)
Add TrackerPayload to buffer.
|
java.util.List<TrackerPayload> |
cleanupAfterSendingAttempt(boolean needRetry,
long batchId)
Finish processing events after a request has been made.
|
java.util.List<TrackerPayload> |
getAllEvents()
Get a copy of all the TrackerPayloads in the buffer.
|
BatchPayload |
getEventsBatch(int numberToGet)
Remove some TrackerPayloads from the buffer.
|
int |
size()
Get the current size of the buffer.
|
boolean addEvent(TrackerPayload trackerPayload)
trackerPayload
- the payload to addBatchPayload getEventsBatch(int numberToGet)
numberToGet
- how many payloads to getjava.util.List<TrackerPayload> getAllEvents()
java.util.List<TrackerPayload> cleanupAfterSendingAttempt(boolean needRetry, long batchId)
needRetry
- if another attempt should be made to send the eventsbatchId
- the ID of the batch of eventsint size()