| Constructor and Description |
|---|
EnvironmentStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite()
Some stores like environment variables can't write.
|
String |
delete(String key)
Delete a field form the store
|
String |
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() |
public void load()
Storepublic void save(boolean closeResources)
throws Exception
Storepublic <T extends Serializable> T get(String key, T def)
Storepublic <T extends Serializable> T set(String key, T value)
Storepublic boolean canWrite()
Storepublic Map<String,Serializable> getAll()
StoreCopyright © 2019. All rights reserved.