@Preview(value="3.5") public abstract class AbstractFlowContext extends Object implements FlowContext
| Constructor and Description |
|---|
AbstractFlowContext() |
AbstractFlowContext(String instanceId) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
computeIfAbsent(String key,
Function<String,T> mappingFunction)
尝试完成
|
<C,R> org.noear.dami.bus.DamiBus<C,R> |
eventBus()
获取事件总线(based damibus)
|
ExecutorService |
executor()
异步执行器
|
AbstractFlowContext |
executor(ExecutorService executor)
配置异步执行器
|
<T> T |
getAs(String key)
获取
|
Boolean |
getAsBoolean(String key) |
Number |
getAsNumber(String key) |
Object |
getAsObject(String key) |
String |
getAsString(String key) |
String |
getInstanceId()
获取流实例id
|
<T> T |
getOrDefault(String key,
T def)
获取或默认
|
int |
incrAdd(String key,
int delta)
增量添加
|
int |
incrGet(String key)
增量获取
|
Map<String,Object> |
model()
数据模型
|
AbstractFlowContext |
put(String key,
Object value)
推入
|
AbstractFlowContext |
putAll(Map<String,Object> model)
推入全部
|
AbstractFlowContext |
putIfAbsent(String key,
Object value)
推入
|
void |
remove(String key)
移除
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexchanger, get, isStateful, of, of, of, of, statefulSupporterpublic AbstractFlowContext()
public AbstractFlowContext(String instanceId)
@Preview(value="3.3") @Nullable public ExecutorService executor()
executor in interface FlowContext@Preview(value="3.3") public AbstractFlowContext executor(ExecutorService executor)
executor in interface FlowContextpublic Map<String,Object> model()
model in interface FlowContextpublic AbstractFlowContext put(String key, Object value)
put in interface FlowContextpublic AbstractFlowContext putIfAbsent(String key, Object value)
putIfAbsent in interface FlowContextpublic AbstractFlowContext putAll(Map<String,Object> model)
putAll in interface FlowContextpublic <T> T computeIfAbsent(String key, Function<String,T> mappingFunction)
computeIfAbsent in interface FlowContextpublic <T> T getAs(String key)
getAs in interface FlowContextpublic <T> T getOrDefault(String key, T def)
getOrDefault in interface FlowContextpublic int incrAdd(String key, int delta)
incrAdd in interface FlowContextpublic int incrGet(String key)
incrGet in interface FlowContextpublic void remove(String key)
remove in interface FlowContextpublic String getInstanceId()
getInstanceId in interface FlowContextpublic <C,R> org.noear.dami.bus.DamiBus<C,R> eventBus()
eventBus in interface FlowContextCopyright © 2025. All rights reserved.