Constructor and Description |
---|
StateFactory() |
Modifier and Type | Method and Description |
---|---|
static State |
getState(String namespace,
Map stormConf,
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 stormConf, TopologyContext context)
Returns a new state instance using the Config.TOPOLOGY_STATE_PROVIDER
or a InMemoryKeyValueState
if no provider is configured.
namespace
- the state namespacestormConf
- the storm confcontext
- the topology contextCopyright © 2022 The Apache Software Foundation. All Rights Reserved.