public interface Store
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(DataLoad dataLoad)
Adds an event to the database or memory.
|
void |
close()
Closes the database
|
EmittableEvents |
getEmittableEvents()
Returns an EmittableEvents object which
contains events and eventIds within a
defined range of the database.
|
long |
getSize()
Returns amount of events currently
in the database.
|
boolean |
isOpen()
whether the store is open
|
boolean |
removeAllEvents()
Empties the database of all events
|
boolean |
removeEvent(long id)
Removes an event from the database
|
void add(DataLoad dataLoad)
dataLoad - the payload to be addedboolean isOpen()
void close()
boolean removeEvent(long id)
id - the row id of the eventboolean removeAllEvents()
long getSize()
EmittableEvents getEmittableEvents()