|
|||||||||
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 BufferEvent
s
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
BufferEvent
s 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 BufferEvent s 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()
BufferEvent
s stored using this IEventStore
BufferEvent
s storedvoid 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 completedBufferEvent 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 completedvoid 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 |