Package org.apache.storm.redis.state
Class RedisKeyValueStateProvider
java.lang.Object
org.apache.storm.redis.state.RedisKeyValueStateProvider
- All Implemented Interfaces:
StateProvider
Provides
RedisKeyValueState.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RedisKeyValueStateProvider
public RedisKeyValueStateProvider()
-
-
Method Details
-
newState
Description copied from interface:StateProviderReturns 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.- Specified by:
newStatein interfaceStateProvider- Parameters:
namespace- a namespace of the statetopoConf- the storm topology configurationcontext- theTopologyContext- Returns:
- a previously saved state if one exists otherwise a newly initialized state.
-