StateStore
is the contract of state storage engines (state stores) that store a state.
StateStore
can be persistent or not (i.e. in-memory).
Method | Description |
---|---|
|
void close() Closes the state store Used when:
|
|
void flush() Flushes cached data Used when:
|
|
void init(
ProcessorContext context,
StateStore root) Initializes the state store Used when:
|
|
boolean isOpen() Indicates whether the state store is open or not Used when:
|
|
String name() Name of the state store (for identification purposes) |
|
boolean persistent() Indicates whether the state store is persistent ( Used when:
|
StateStore | Description |
---|---|