public class RedisKeyValueStateProvider extends Object implements StateProvider
Provides RedisKeyValueState
Modifier and Type | Class and Description |
---|---|
static class |
RedisKeyValueStateProvider.StateConfig |
Constructor and Description |
---|
RedisKeyValueStateProvider() |
Modifier and Type | Method and Description |
---|---|
State |
newState(String namespace,
Map stormConf,
TopologyContext context)
Returns a new state instance.
|
public State newState(String namespace, Map stormConf, TopologyContext context)
StateProvider
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.
newState
in interface StateProvider
namespace
- a namespace of the statestormConf
- the storm topology configurationcontext
- the TopologyContext
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.