public abstract class IotaClientStore extends Object implements Store
| Constructor and Description |
|---|
IotaClientStore(Store store) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite()
Some stores like environment variables can't write.
|
Serializable |
delete(String key)
Delete a field form the store
|
Serializable |
get(String key) |
<T extends Serializable> |
get(String key,
T def)
Gets a value from the store
|
Map<String,Serializable> |
getAll()
Returns all the values in this store
|
void |
load()
Loads this store into cache
|
void |
save(boolean closeResources)
Saves this store onto its storage method.
|
<T extends Serializable> |
set(String key,
T value)
Sets a value in the store
|
String |
toString() |
protected Store store
public IotaClientStore(Store store)
public boolean canWrite()
Storepublic void load()
throws Exception
Storepublic void save(boolean closeResources)
throws Exception
Storepublic Serializable get(String key)
public <T extends Serializable> T get(String key, T def)
Storepublic <T extends Serializable> T set(String key, T value)
Storepublic Map<String,Serializable> getAll()
Storepublic Serializable delete(String key)
StoreCopyright © 2019. All rights reserved.