public class RedisStateRepository extends Object implements StateRepository
| Constructor and Description |
|---|
RedisStateRepository(org.noear.redisx.RedisClient client) |
RedisStateRepository(org.noear.redisx.RedisClient client,
String statePrefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearState(FlowContext context)
清空
|
StateType |
getState(FlowContext context,
Node node)
获取状态
|
void |
putState(FlowContext context,
Node node,
StateType state)
推入状态
|
void |
removeState(FlowContext context,
Node node)
移除状态
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonPostActivityStatepublic RedisStateRepository(org.noear.redisx.RedisClient client)
public RedisStateRepository(org.noear.redisx.RedisClient client,
String statePrefix)
public StateType getState(FlowContext context, Node node)
StateRepositorygetState in interface StateRepositorypublic void putState(FlowContext context, Node node, StateType state)
StateRepositoryputState in interface StateRepositorypublic void removeState(FlowContext context, Node node)
StateRepositoryremoveState in interface StateRepositorypublic void clearState(FlowContext context)
StateRepositoryclearState in interface StateRepositoryCopyright © 2025. All rights reserved.