public interface StateStore
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String key)
Check weather the specified key is in the store
|
byte[] |
get(java.lang.String key)
Get the bye value of the key
|
void |
init(Config config,
java.lang.String... path)
Initialize the store
|
void |
put(java.lang.String key,
byte[] data)
Put a key and data
|
void init(Config config, java.lang.String... path)
config
- configurationpath
- pathvoid put(java.lang.String key, byte[] data) throws java.io.IOException
key
- keydata
- datajava.io.IOException
- if an error occursbyte[] get(java.lang.String key) throws java.io.IOException
key
- keyjava.io.IOException
- if an error occursboolean contains(java.lang.String key) throws java.io.IOException
key
- keyjava.io.IOException
- if an error occurs