public class StorableProperties extends Object implements Storable<StorableProperties>
Constructor and Description |
---|
StorableProperties(Directory dir) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkVersions(boolean silent) |
void |
close()
This method makes sure that the underlying used resources are released.
|
StorableProperties |
create(long size)
Creates the underlying storage.
|
void |
flush()
This method makes sure that the underlying data is written to the storage.
|
String |
get(String key) |
long |
getCapacity() |
boolean |
isClosed() |
boolean |
loadExisting() |
StorableProperties |
put(String key,
Object val)
Before it saves this value it creates a string out of it.
|
StorableProperties |
put(String key,
String val) |
StorableProperties |
putAll(Map<String,String> externMap) |
void |
putCurrentVersions() |
StorableProperties |
remove(String key) |
String |
toString() |
String |
versionsToString() |
public StorableProperties(Directory dir)
public boolean loadExisting()
loadExisting
in interface Storable<StorableProperties>
public void flush()
Storable
flush
in interface Storable<StorableProperties>
public StorableProperties remove(String key)
public StorableProperties putAll(Map<String,String> externMap)
public StorableProperties put(String key, String val)
public StorableProperties put(String key, Object val)
public void close()
Storable
close
in interface Storable<StorableProperties>
close
in interface Closeable
close
in interface AutoCloseable
public boolean isClosed()
isClosed
in interface Storable<StorableProperties>
public StorableProperties create(long size)
Storable
create
in interface Storable<StorableProperties>
public long getCapacity()
getCapacity
in interface Storable<StorableProperties>
public void putCurrentVersions()
public String versionsToString()
public boolean checkVersions(boolean silent)
Copyright © 2012–2020. All rights reserved.