public interface StateProvider
Used by the StateFactory to create a new state instances.
| Modifier and Type | Method and Description |
|---|---|
State |
newState(String namespace,
Map<String,Object> topoConf,
TopologyContext context)
Returns a new state instance.
|
State newState(String namespace, Map<String,Object> topoConf, TopologyContext context)
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.
namespace - a namespace of the statetopoConf - the storm topology configurationcontext - the TopologyContextCopyright © 2021 The Apache Software Foundation. All rights reserved.