|
||||||||||
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 Storage<T>
Interface of a generic storage.
The store(T)
method stores the provided object into the storage
and returns its address. This address can be used to retrieve or remove the
object back at any time later.
Method Summary | |
---|---|
void |
destroy()
Destroy this storage. |
void |
finalize()
Finalize this storage. |
Address<T> |
store(T object)
Stores an object in this storage. |
Method Detail |
---|
Address<T> store(T object) throws BucketStorageException
object
- the object to store
BucketStorageException
- if there was an error writing the datavoid finalize() throws java.lang.Throwable
java.lang.Throwable
- if there was an error while cleaningvoid destroy() throws java.lang.Throwable
java.lang.Throwable
- if there was an error while cleaning
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |