| 构造器和说明 |
|---|
MemoryStore(int sendLimit) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
java.util.Map<java.lang.String,java.lang.Object> |
getEvent(long id)
Returns a Map containing the event
payload values, the table row ID and
the date it was created.
|
long |
getSize()
Returns amount of events currently
in the database.
|
long |
insertEvent(DataLoad dataLoad)
Inserts a payload into 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
|
public boolean removeEvent(long id)
StoreremoveEvent 在接口中 Storeid - the row id of the eventpublic boolean removeAllEvents()
StoreremoveAllEvents 在接口中 Storepublic long getSize()
Storepublic EmittableEvents getEmittableEvents()
StoregetEmittableEvents 在接口中 Storepublic long insertEvent(DataLoad dataLoad)
dataLoad - The event dataLoad to
be storedpublic java.util.Map<java.lang.String,java.lang.Object> getEvent(long id)
id - the row id of the event to get