public interface EventStore
| Modifier and Type | Method and Description |
|---|---|
void |
add(Payload payload)
Adds an event to the store.
|
List<EmitterEvent> |
getEmittableEvents(int queryLimit)
Returns a list of EmittableEvent objects which
contains events and related ids.
|
long |
getSize()
Returns amount of events currently in the store.
|
boolean |
removeAllEvents()
Empties the store of all the events.
|
boolean |
removeEvent(long id)
Removes an event from the store.
|
boolean |
removeEvents(List<Long> ids)
Removes a range of events from the store.
|
void add(@NonNull
Payload payload)
payload - the payload to be addedboolean removeEvent(long id)
id - the identifier of the event in the store.boolean removeEvents(@NonNull
List<Long> ids)
ids - the events' identifiers in the store.boolean removeAllEvents()
long getSize()
@NonNull List<EmitterEvent> getEmittableEvents(int queryLimit)