public interface Storable<T> extends Closeable
Then the lifecycle is identical for all such objects:
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method makes sure that the underlying used resources are released.
|
T |
create(long byteCount)
Creates the underlying storage.
|
void |
flush()
This method makes sure that the underlying data is written to the storage.
|
long |
getCapacity() |
boolean |
isClosed() |
boolean |
loadExisting() |
boolean loadExisting()
T create(long byteCount)
void flush()
void close()
close in interface AutoCloseableclose in interface Closeableboolean isClosed()
long getCapacity()
Copyright © 2012–2018. All rights reserved.