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)
StateProvider
Returns 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 StateProvider
namespace
- a namespace of the statetopoConf
- the storm topology configurationcontext
- the TopologyContext
Copyright © 2022 The Apache Software Foundation. All rights reserved.