public class LocalFileContextBackend extends Object implements ContextBackend
AtomicFsBackend which extends this
class.| Constructor and Description |
|---|
LocalFileContextBackend(ContextBackendConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String key)
check if key exists in state
|
byte[] |
get(String key)
get content by key
|
void |
put(String key,
byte[] value)
put content by key
|
void |
remove(String key)
remove content by key
|
protected void |
rename(String fromKey,
String toKey) |
public LocalFileContextBackend(ContextBackendConfig config)
public boolean exists(String key)
ContextBackendexists in interface ContextBackendpublic byte[] get(String key) throws Exception
ContextBackendget in interface ContextBackendkey - keyExceptionpublic void put(String key, byte[] value) throws Exception
ContextBackendput in interface ContextBackendkey - keyvalue - contentExceptionpublic void remove(String key)
ContextBackendremove in interface ContextBackendkey - keyCopyright © 2021. All rights reserved.