|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the class of objects stored in this storagepublic interface LongStorage<T>
Interface for storage that uses long addresses.
The store(T)
method stores the provided object into the storage
and returns its address. This address can be used to read
or remove
the object at any time later.
Method Summary | |
---|---|
T |
read(long address)
Reads the object stored at the specified address in this storage. |
void |
remove(long address)
Removes the object stored at the specified address in this storage. |
LongAddress<T> |
store(T object)
Stores an object in this storage. |
Methods inherited from interface messif.buckets.storage.Storage |
---|
destroy, finalize |
Method Detail |
---|
LongAddress<T> store(T object) throws BucketStorageException
Storage
store
in interface Storage<T>
object
- the object to store
BucketStorageException
- if there was an error writing the dataT read(long address) throws BucketStorageException
address
- the address of the object to read
BucketStorageException
- if there was an error reading the datavoid remove(long address) throws BucketStorageException, java.lang.UnsupportedOperationException
address
- the address of the object to remove
BucketStorageException
- if there was an error deleting an object
java.lang.UnsupportedOperationException
- if this storage does not support removal of objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |