|
|||||||||
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 IntStorage<T>
Interface for storage that uses int addresses.
The store(T)
method stores the provided object into the storage
and returns its address. This address can be used to read(int)
or remove
the object at any time later.
Method Summary | |
---|---|
T |
read(int address)
Reads the object stored at the specified address in this storage. |
void |
remove(int address)
Removes the object stored at the specified address in this storage. |
IntAddress<T> |
store(T object)
Stores an object in this storage. |
Methods inherited from interface messif.buckets.storage.Storage |
---|
destroy, finalize |
Method Detail |
---|
IntAddress<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(int address) throws BucketStorageException
address
- the address of the object to read
BucketStorageException
- if there was an error reading the datavoid remove(int 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 |