public class MemoryContextBackend extends Object implements ContextBackend
| Constructor and Description |
|---|
MemoryContextBackend(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
|
public MemoryContextBackend(ContextBackendConfig config)
public boolean exists(String key)
ContextBackendexists in interface ContextBackendpublic byte[] get(String key)
ContextBackendget in interface ContextBackendkey - keypublic void put(String key, byte[] value)
ContextBackendput in interface ContextBackendkey - keyvalue - contentpublic void remove(String key)
ContextBackendremove in interface ContextBackendkey - keyCopyright © 2021. All rights reserved.