public class FlowExecutor extends Object
| 构造器和说明 |
|---|
FlowExecutor() |
FlowExecutor(LiteflowConfig liteflowConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
DefaultContext |
execute(String chainId,
Object param)
已过时。
|
Future<LiteflowResponse> |
execute2Future(String chainId,
Object param,
Class<?>... contextBeanClazzArray) |
Future<LiteflowResponse> |
execute2Future(String chainId,
Object param,
Object... contextBeanArray) |
Future<LiteflowResponse> |
execute2FutureWithRid(String chainId,
Object param,
String requestId,
Class<?>... contextBeanClazzArray) |
Future<LiteflowResponse> |
execute2FutureWithRid(String chainId,
Object param,
String requestId,
Object... contextBeanArray) |
LiteflowResponse |
execute2Resp(String chainId) |
LiteflowResponse |
execute2Resp(String chainId,
Object param) |
LiteflowResponse |
execute2Resp(String chainId,
Object param,
Class<?>... contextBeanClazzArray) |
LiteflowResponse |
execute2Resp(String chainId,
Object param,
Object... contextBeanArray) |
LiteflowResponse |
execute2RespWithRid(String chainId,
Object param,
String requestId,
Class<?>... contextBeanClazzArray) |
LiteflowResponse |
execute2RespWithRid(String chainId,
Object param,
String requestId,
Object... contextBeanArray) |
LiteflowConfig |
getLiteflowConfig() |
void |
init(boolean isStart)
FlowExecutor的初始化化方式,主要用于parse规则文件
isStart表示是否是系统启动阶段,启动阶段要做额外的事情,而因为reload所调用的init就不用做
|
void |
invoke(String nodeId,
Integer slotIndex)
已过时。
|
void |
invoke(String chainId,
Object param,
Integer slotIndex)
已过时。
|
LiteflowResponse |
invoke2Resp(String chainId,
Object param,
Integer slotIndex) |
LiteflowResponse |
invoke2RespInAsync(String chainId,
Object param,
Integer slotIndex) |
void |
invokeInAsync(String chainId,
Object param,
Integer slotIndex)
已过时。
|
void |
reloadRule() |
void |
setLiteflowConfig(LiteflowConfig liteflowConfig) |
public FlowExecutor()
public FlowExecutor(LiteflowConfig liteflowConfig)
public void init(boolean isStart)
public void reloadRule()
@Deprecated public void invoke(String chainId, Object param, Integer slotIndex) throws Exception
Exception@Deprecated public void invokeInAsync(String chainId, Object param, Integer slotIndex) throws Exception
Exceptionpublic LiteflowResponse invoke2Resp(String chainId, Object param, Integer slotIndex)
public LiteflowResponse invoke2RespInAsync(String chainId, Object param, Integer slotIndex)
@Deprecated public void invoke(String nodeId, Integer slotIndex) throws Exception
Exceptionpublic LiteflowResponse execute2Resp(String chainId)
public LiteflowResponse execute2Resp(String chainId, Object param)
public LiteflowResponse execute2Resp(String chainId, Object param, Class<?>... contextBeanClazzArray)
public LiteflowResponse execute2Resp(String chainId, Object param, Object... contextBeanArray)
public LiteflowResponse execute2RespWithRid(String chainId, Object param, String requestId, Class<?>... contextBeanClazzArray)
public LiteflowResponse execute2RespWithRid(String chainId, Object param, String requestId, Object... contextBeanArray)
public Future<LiteflowResponse> execute2Future(String chainId, Object param, Class<?>... contextBeanClazzArray)
public Future<LiteflowResponse> execute2Future(String chainId, Object param, Object... contextBeanArray)
public Future<LiteflowResponse> execute2FutureWithRid(String chainId, Object param, String requestId, Class<?>... contextBeanClazzArray)
public Future<LiteflowResponse> execute2FutureWithRid(String chainId, Object param, String requestId, Object... contextBeanArray)
@Deprecated public DefaultContext execute(String chainId, Object param) throws Exception
Exceptionpublic LiteflowConfig getLiteflowConfig()
public void setLiteflowConfig(LiteflowConfig liteflowConfig)
Copyright © 2023. All rights reserved.