public class StatefulFlowContext extends AbstractFlowContext implements StatefulSupporter
| Constructor and Description |
|---|
StatefulFlowContext(String instanceId,
StateController stateController,
StateRepository stateRepository) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAutoForward(Node node)
是否自动前进
|
boolean |
isOperatable(Node node)
是否可操作的
|
boolean |
isStateful()
是否为有状态的
|
void |
stateClear()
状态清空
|
StatefulSupporter |
statefulSupporter()
获取有状态的支持者
|
StateType |
stateGet(Node node)
状态获取
|
void |
statePut(Node node,
StateType state)
状态推入
|
void |
stateRemove(Node node)
状态移除
|
computeIfAbsent, eventBus, executor, executor, getAs, getAsBoolean, getAsNumber, getAsObject, getAsString, getInstanceId, getOrDefault, incrAdd, incrGet, model, put, putAll, putIfAbsent, removepublic StatefulFlowContext(String instanceId, StateController stateController, StateRepository stateRepository)
public final boolean isStateful()
FlowContextisStateful in interface FlowContextpublic StatefulSupporter statefulSupporter()
FlowContextstatefulSupporter in interface FlowContextpublic boolean isOperatable(Node node)
StatefulSupporterisOperatable in interface StatefulSupporterpublic boolean isAutoForward(Node node)
StatefulSupporterisAutoForward in interface StatefulSupporterpublic StateType stateGet(Node node)
StatefulSupporterstateGet in interface StatefulSupporterpublic void statePut(Node node, StateType state)
StatefulSupporterstatePut in interface StatefulSupporterpublic void stateRemove(Node node)
StatefulSupporterstateRemove in interface StatefulSupporterpublic void stateClear()
StatefulSupporterstateClear in interface StatefulSupporterCopyright © 2025. All rights reserved.