Constructor and Description |
---|
StateFactory() |
Modifier and Type | Method and Description |
---|---|
static State |
getState(String namespace,
Map<String,Object> topoConf,
TopologyContext context)
Returns a new state instance using the
Config.TOPOLOGY_STATE_PROVIDER or a InMemoryKeyValueState if no provider is configured. |
public static State getState(String namespace, Map<String,Object> topoConf, TopologyContext context)
Returns a new state instance using the Config.TOPOLOGY_STATE_PROVIDER
or a InMemoryKeyValueState
if no provider is configured.
namespace
- the state namespacetopoConf
- the storm confcontext
- the topology contextCopyright © 2022 The Apache Software Foundation. All rights reserved.