public interface IEventStore
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| Modifier and Type | Method and Description |
|---|---|
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 |
long getEventCount()
BufferEvents stored using this IEventStoreBufferEvents storedvoid persist(BufferEvent event) throws GRS2EventStoreException
BufferEventevent - the BufferEvent to persistGRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completedBufferEvent retrieveByIndex(long eventIndex) throws GRS2EventStoreException
BufferEvent based on the index by which it was storedeventIndex - The index by which the BufferEvent to be retrieved was storedBufferEvent retrievedGRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completedvoid dispose()
throws GRS2EventStoreException
IEventStore instance as well as any permanent storage resources occupiedGRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completedCopyright © 2014. All Rights Reserved.