|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IEventStore
This interface defines a way a persistency manager can be interfaced to enabling persistency of BufferEvents
and retrieval based on the order by which they were stored. The BufferEvent persistency
must be handled by the respective BufferEvent.deflate(java.io.DataOutput) operation while the retrieval
by the respective BufferEvent.inflate(java.io.DataInput) method. The storage medium over which the
BufferEvents are persisted is left to the implementation specifics
| Method Summary | |
|---|---|
void |
dispose()
Disposes the IEventStore instance as well as any permanent storage resources occupied |
long |
getEventCount()
Retrieves the number of BufferEvents stored using this IEventStore |
void |
persist(BufferEvent event)
Persists the provided BufferEvent |
BufferEvent |
retrieveByIndex(long eventIndex)
Retrieve a previously stored BufferEvent based on the index by which it was stored |
| Method Detail |
|---|
long getEventCount()
BufferEvents stored using this IEventStore
BufferEvents stored
void persist(BufferEvent event)
throws GRS2EventStoreException
BufferEvent
event - the BufferEvent to persist
GRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completed
BufferEvent retrieveByIndex(long eventIndex)
throws GRS2EventStoreException
BufferEvent based on the index by which it was stored
eventIndex - The index by which the BufferEvent to be retrieved was stored
BufferEvent retrieved
GRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completed
void dispose()
throws GRS2EventStoreException
IEventStore instance as well as any permanent storage resources occupied
GRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||