StateManager
is the contract of state store managers that manage state stores and are checkpointable.
Method | Description |
---|---|
|
File baseDir() Base directory Used exclusively when |
|
void close(
Map<TopicPartition, Long> offsets) Closes a state manager Used when:
|
|
void flush() Flushes all state stores registered (in the state manager) Used when:
|
|
StateStore getGlobalStore(
String name) Accessing the global state store by name Used when:
|
|
StateStore getStore(
String name) Accessing the state store by name Used when AbstractTask and ProcessorContextImpl are requested to get the state store by name |
|
void register(
StateStore store,
StateRestoreCallback stateRestoreCallback) Registers a state store (with an associated StateRestoreCallback) Used exclusively when |
|
void reinitializeStateStoresForPartitions(
Collection<TopicPartition> partitions,
InternalProcessorContext processorContext) Used when:
|
StateManager | Description |
---|---|