public class BufferStoreEntry extends Object
IBufferStore implementations. This information
includes the locator that is managed, the reader that is used to iterate over the Records accessible through the
locator, the IRecordStore that persists the retrieved Records, the IEventStore that persists the
received BufferEvents as well as a persisted location holding the RecordDefinitions that are needed to
be available for the Records to be reused| Modifier and Type | Class and Description |
|---|---|
static class |
BufferStoreEntry.EntryStatus
The status of the entry
|
| Constructor and Description |
|---|
BufferStoreEntry(URI locator)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes all state kept as well as the initialized
ForwardReader.close(), IRecordStore.dispose()
and removes the persisted RecordDefinitions |
RecordDefinition[] |
getDefinitions()
Retrieves the
RecordDefinitions from the persisted location it has stored them at initialization |
IEventStore |
getEventManager()
Retrieves the
IEventStore manager that is used to persist incoming BufferEvents |
ForwardReader<Record> |
getReader()
Retrieves the reader used to iterate over the
Records of the incoming locator |
long |
getReaderTimeout()
Retrieves the timeout set to be used by the reader of the incoming locator.
|
TimeUnit |
getReaderTimeoutTimeUnit()
Retrieves the timeout time unit set to be used by the reader of the incoming locator.
|
IRecordStore |
getRecordManager()
Retrieves the
IRecordStore manager that is used to persist incoming Records |
BufferStoreEntry.EntryStatus |
getStatus()
Retrieves the status of the entry
|
void |
initialize()
After all configuration values have been set, this method initializes the
IRecordStore, the ForwardReader,
and persists the reader available RecordDefinitions |
void |
setReaderTimeout(long timeout)
Sets the timeout set to be used by the reader of the incoming locator.
|
void |
setReaderTimeoutTimeUnit(TimeUnit unit)
Sets the timeout time unit set to be used by the reader of the incoming locator.
|
void |
setStatus(BufferStoreEntry.EntryStatus status)
Sets the status of the entry
|
public BufferStoreEntry.EntryStatus getStatus()
public void setStatus(BufferStoreEntry.EntryStatus status)
status - the statuspublic ForwardReader<Record> getReader()
Records of the incoming locatorpublic IRecordStore getRecordManager()
IRecordStore manager that is used to persist incoming Recordspublic IEventStore getEventManager()
IEventStore manager that is used to persist incoming BufferEventspublic long getReaderTimeout()
getReaderTimeoutTimeUnit()public void setReaderTimeout(long timeout)
setReaderTimeoutTimeUnit(TimeUnit)timeout - the timeoutpublic TimeUnit getReaderTimeoutTimeUnit()
getReaderTimeout()public void setReaderTimeoutTimeUnit(TimeUnit unit)
setReaderTimeout(long)unit - the time unitpublic void initialize()
throws GRS2RecordStoreException,
GRS2ReaderException,
GRS2BufferStoreAccessException,
GRS2EventStoreException
IRecordStore, the ForwardReader,
and persists the reader available RecordDefinitionsGRS2RecordStoreException - the state of the IRecordStore does not allow for this operation to be completedGRS2ReaderException - the state of the ForwardReader does not allow for this operation to be completedGRS2BufferStoreAccessException - the state of the IBufferStore does not allow for this operation to be completedGRS2EventStoreException - the state of the IEventStore does not allow for this operation to be completedpublic void dispose()
ForwardReader.close(), IRecordStore.dispose()
and removes the persisted RecordDefinitionspublic RecordDefinition[] getDefinitions() throws GRS2BufferStoreAccessException
RecordDefinitions from the persisted location it has stored them at initializationRecordDefinitions of the incoming locatorGRS2BufferStoreAccessException - the state of the IBufferStore does not allow for this operation to be completedCopyright © 2014. All Rights Reserved.