| 限定符和类型 | 方法和说明 |
|---|---|
@NotNull Context |
ContextBuilder.build() |
| 限定符和类型 | 方法和说明 |
|---|---|
O |
ResultConverter.convert(@NotNull Context context,
I origin) |
@NotNull ProcessStatus |
Executable.execute(@NotNull Context context)
根据上下文执行当前节点
|
R |
ResultHandler.getResult(@NotNull Context context) |
void |
ProcessListener.onComplete(@NotNull Context context,
R result) |
void |
ProcessListener.onFailure(@NotNull Context context,
Throwable t) |
V |
Processor.process(@NotNull Context context) |
R |
ProcessInstance.process(@NotNull Context context) |
R |
DefaultProcessInstance.process(@NotNull Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
R |
DistributeAggregator.aggregate(@NotNull Context context,
List<DistributeMergeableNode<?,R>> nodes)
对可聚合的节点进行结果聚合,并返回聚合后的结果
|
R |
ParallelDistributeAggregator.aggregate(@NotNull Context context,
List<DistributeMergeableNode<?,R>> nodes) |
R |
SerialDistributeAggregator.aggregate(@NotNull Context context,
List<DistributeMergeableNode<?,R>> nodes) |
O |
ParallelGenericAggregator.aggregate(@NotNull Context context,
List<GenericMergeableNode<I>> nodes) |
O |
SerialGenericAggregator.aggregate(@NotNull Context context,
List<GenericMergeableNode<I>> nodes) |
O |
GenericAggregator.aggregate(@NotNull Context context,
List<GenericMergeableNode<I>> nodes)
对可聚合的节点进行结果聚合,并返回聚合后的结果
|
R |
Aggregator.aggregate(@NotNull Context context,
List<N> nodes)
对可聚合的节点进行结果聚合,并返回聚合后的结果
|
private CompletableFuture<?> |
ParallelDistributeAggregator.getFuture(Context context,
DistributeMergeableNode<?,R> node,
BlockingQueue<ParallelDistributeAggregator.MergerNode<?,R>> mergerNodes,
R result) |
private CompletableFuture<?> |
ParallelGenericAggregator.getFuture(Context context,
GenericMergeableNode<I> node,
BlockingQueue<I> resultQueue) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ContextImpl
流程上下文的实现。
|
class |
ContextWrapper
context包装类,在新创建作用域时,将当前context与新创建的block进行包装,这样可以实现不同作用域的功能。
|
| 限定符和类型 | 字段和说明 |
|---|---|
private Context |
ContextWrapper.context
被包装的context
|
| 限定符和类型 | 方法和说明 |
|---|---|
Context |
ContextWrapper.cloneContext() |
Context |
Context.cloneContext()
克隆流程上下文,新建流程上下文,并复制当前上下文中的参数至新的上下文对象。
|
Context |
ContextImpl.cloneContext() |
static Context |
Contexts.newContext()
创建流程上下文。
|
static Context |
Contexts.of(@NotNull Block block)
根据block创建流程上下文。
|
static Context |
Contexts.of(@NotNull Block block,
@NotNull Map<Key<?>,Object> map)
根据block和参数map创建流程上下文。
|
static Context |
Contexts.of(@NotNull Map<Key<?>,Object> map)
根据参数map创建流程上下文。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ContextWrapper |
Contexts.wrap(@NotNull Context context,
@NotNull Block block)
包装新的流程上下文
|
static ContextWrapper |
Contexts.wrap(@NotNull Context context,
@NotNull Block block,
KeyManager keyManager)
包装新的流程上下文
|
static ContextWrapper |
Contexts.wrap(@NotNull Context context,
@NotNull Block block,
KeyMapper mapper)
包装新的流程上下文
|
static ContextWrapper |
Contexts.wrap(@NotNull Context context,
@NotNull Block block,
KeyMapper mapper,
Set<Key<?>> readableKeys,
Set<Key<?>> writableKeys)
包装新的流程上下文
|
static ContextWrapper |
Contexts.wrap(@NotNull Context context,
@NotNull ExecutableNode<?,?> node)
包装新的流程上下文
|
| 构造器和说明 |
|---|
ContextWrapper(@NotNull Context context,
@NotNull Block block) |
ContextWrapper(@NotNull Context context,
@NotNull Block block,
@Nullable KeyManager keyManager) |
ContextWrapper(@NotNull Context context,
@NotNull Block block,
@Nullable KeyMapper mapper,
@Nullable Set<Key<?>> readableKeys,
@Nullable Set<Key<?>> writableKeys) |
| 限定符和类型 | 方法和说明 |
|---|---|
@NotNull ProcessStatus |
SerialExecutor.execute(@NotNull Context context,
ExecutableNode<?,?>... nodes)
执行节点
|
@NotNull ProcessStatus |
DefaultSerialExecutor.execute(@NotNull Context context,
ExecutableNode<?,?>... nodes) |
@NotNull ProcessStatus |
ParallelExecutor.execute(Executor executor,
@NotNull ProceedStrategy proceedStrategy,
@NotNull Context context,
ExecutableNode<?,?>... nodes)
并行执行节点
|
@NotNull ProcessStatus |
DefaultParallelExecutor.execute(Executor executor,
@NotNull ProceedStrategy proceedStrategy,
@NotNull Context context,
ExecutableNode<?,?>... nodes) |
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
AbstractExecutableNode.doParallelExecute(Context context) |
private R |
AbstractExecutableNode.doSerialExecute(Context context) |
@NotNull ProcessStatus |
AbstractExecutableNode.execute(@NotNull Context context) |
@NotNull ProcessStatus |
DefaultParallelBranchNode.execute(@NotNull Context context) |
protected void |
AbstractExecutableNode.notifyListeners(Context context,
R result,
@Nullable Throwable t,
boolean success) |
protected void |
AbstractExecutableNode.postExecution(@NotNull Context context,
R result) |
protected void |
AbstractExecutableNode.preExecution(@NotNull Context context) |
private void |
AbstractExecutableNode.processResult(Context context,
R result) |
protected boolean |
AbstractExecutableNode.ruleCheck(@NotNull Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
IfConditionNode.ruleCheck(@NotNull Context context) |
protected boolean |
WhileConditionNode.ruleCheck(@NotNull Context context) |
protected boolean |
DoWhileConditionNode.ruleCheck(@NotNull Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ResultConsumer.accept(Context context,
T result) |
R |
ResultProcessor.apply(Context context,
P result) |
private void |
TransmittableProcessor.doFire(Context context,
P value) |
private void |
AbstractTransmittableNode.doParallelProcess(Context context) |
@NotNull ProcessStatus |
AbstractTransmittableNode.execute(@NotNull Context context) |
void |
TransmittableProcessor.fire(Context context,
P value) |
| 限定符和类型 | 方法和说明 |
|---|---|
@NotNull ProcessStatus |
ParallelBranchProcessor.process(@NotNull Context context) |
@NotNull ProcessStatus |
StatusProcessor.process(@NotNull Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
@NotNull ProcessStatus |
WhileProcessorImpl.process(@NotNull Context context) |
O |
ConvertProcessorImpl.process(@NotNull Context context) |
O |
DistributeAggregateProcessorImpl.process(@NotNull Context context) |
O |
DefaultAggregateProcessor.process(@NotNull Context context) |
R |
NodeGroupProcessorImpl.process(@NotNull Context context) |
@NotNull ProcessStatus |
ParallelBranchProcessorImpl.process(@NotNull Context context) |
@NotNull ProcessStatus |
DoWhileProcessorImpl.process(@NotNull Context context) |
@NotNull ProcessStatus |
ProcessInstanceProcessorImpl.process(@NotNull Context context) |
@NotNull ProcessStatus |
TryCatchFinallyProcessorImpl.process(@NotNull Context context) |
@NotNull ProcessStatus |
IfProcessorImpl.process(@NotNull Context context) |
@NotNull ProcessStatus |
BranchProcessorImpl.process(@NotNull Context context) |
T |
DistributeProcessorAdaptor.process(@NotNull Context context) |
private ProcessStatus |
TryCatchFinallyProcessorImpl.runCatchBranch(Context context,
Exception e) |
private void |
TryCatchFinallyProcessorImpl.runFinallyBranch(Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
@NotNull ProcessStatus |
StatusWrapperHandler.afterReturning(@NotNull Context context,
@NotNull ProcessStatus status) |
R |
WrapperHandler.afterReturning(@NotNull Context context,
R result) |
void |
WrapperHandler.afterThrowing(@NotNull Context context,
@NotNull Throwable t) |
void |
WrapperHandler.before(@NotNull Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
R |
AbstractProcessorProxy.process(@NotNull Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
Rule.match(Context context)
校验是否满足当前规则
|
boolean |
Or.match(Context context) |
boolean |
Not.match(Context context) |
boolean |
And.match(Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <I,V> I |
AggregateUtils.process(@NotNull Context context,
@NotNull DistributeMergeableNode<I,V> node) |
static <V> V |
AggregateUtils.process(@NotNull Context context,
@NotNull GenericMergeableNode<V> node) |
static <V> V |
AggregateUtils.process(Processor<V> processor,
Context context,
Set<Key<?>> readableKeys,
Set<Key<?>> writableKeys,
KeyMapper keyMapper) |
Copyright © 2021. All rights reserved.