Package org.apache.storm.state
Class StateFactory
java.lang.Object
org.apache.storm.state.StateFactory
A factory for creating 
State instances.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StateReturns a new state instance using theConfig.TOPOLOGY_STATE_PROVIDERor aInMemoryKeyValueStateif no provider is configured.
- 
Constructor Details- 
StateFactorypublic StateFactory()
 
- 
- 
Method Details- 
getStatepublic static State getState(String namespace, Map<String, Object> topoConf, TopologyContext context) Returns a new state instance using theConfig.TOPOLOGY_STATE_PROVIDERor aInMemoryKeyValueStateif no provider is configured.- Parameters:
- namespace- the state namespace
- topoConf- the storm conf
- context- the topology context
- Returns:
- the state instance
 
 
-