T
- the class of objects stored in this storagepublic interface Storage<T>
extends java.io.Serializable
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.Address<T> store(T object) throws BucketStorageException
object
- the object to storeBucketStorageException
- 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