public interface LinkedDataStore extends DataStore
| Modifier and Type | Method and Description |
|---|---|
int |
delete(int handle)
Delete data associated to the given handle from the store
|
int |
first()
Get the first data handle stored
|
void |
init()
Initialize the data store
|
boolean |
isLocked(int handle)
Check if the data associated with a given handle is locked
|
void |
lock(int handle)
Lock the data associated to a given handle
|
int |
next(int handle)
Get the next data handle after the given one
|
int |
previous(int handle)
Get the previous data handle after the given one
|
int |
replace(int handle,
Object obj)
Replace data in the store at the given position
|
Object |
retrieve(int handle)
Retrieve the data associated to a given handle
|
int |
store(Object obj,
int previousHandle)
Put some data under in the store after the previous handle data
|
void |
unlock(int handle)
Unlock the data associated to a given handle
|
close, commitChanges, commitChanges, getAbsoluteStoreUsage, getStoreUsage, sizevoid init() throws DataStoreException
DataStoreExceptionint first() throws DataStoreException
DataStoreExceptionint next(int handle) throws DataStoreException
handle - block handleDataStoreExceptionint previous(int handle)
throws DataStoreException
handle - block handleDataStoreExceptionint store(Object obj, int previousHandle) throws DataStoreException
previousHandle - previous entry handle, use 0 if the store is emptyDataStoreExceptionint replace(int handle,
Object obj)
throws DataStoreException
handle - message handleobj - the message to storeDataStoreExceptionObject retrieve(int handle) throws DataStoreException
DataStoreException - on storage error or invalid handleint delete(int handle)
throws DataStoreException
DataStoreException - on storage error or invalid handlevoid lock(int handle) throws DataStoreException
DataStoreException - on storage error or invalid handlevoid unlock(int handle)
throws DataStoreException
DataStoreException - on storage error or invalid handleboolean isLocked(int handle)
throws DataStoreException
DataStoreException - on storage error or invalid handleCopyright © 2021. All rights reserved.