public class InMemoryKeyValueStateProvider extends Object implements StateProvider
Provides InMemoryKeyValueState.
| Constructor and Description |
|---|
InMemoryKeyValueStateProvider() |
| Modifier and Type | Method and Description |
|---|---|
State |
newState(String namespace,
Map<String,Object> topoConf,
TopologyContext context)
Returns a new state instance.
|
public State newState(String namespace, Map<String,Object> topoConf, TopologyContext context)
StateProviderReturns a new state instance. Each state belongs unique namespace which is typically the componentid-task of the task, so that each task can have its own unique state.
newState in interface StateProvidernamespace - a namespace of the statetopoConf - the storm topology configurationcontext - the TopologyContextCopyright © 2021 The Apache Software Foundation. All rights reserved.