public interface ParallelBranchProcessor extends ComplexProcessor<ProcessStatus>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addBranch(@NotNull BranchNode branch)
添加分支到当前节点
|
void |
addBranch(ExecutableNode<?,?>... nodes)
添加分支,根据传入的节点列表创建一个新分支,并添加到当前分支节点
|
List<BranchNode> |
getBranches() |
void |
parallelBy(Executor executor) |
void |
proceedWhen(@NotNull ProceedStrategy strategy) |
@NotNull ProcessStatus |
process(@NotNull Context context) |
destroy, initialize@NotNull @NotNull ProcessStatus process(@NotNull @NotNull Context context) throws Exception
process 在接口中 Processor<ProcessStatus>Exceptionvoid addBranch(@NotNull
ExecutableNode<?,?>... nodes)
nodes - 节点列表void addBranch(@NotNull
@NotNull BranchNode branch)
branch - void parallelBy(Executor executor)
void proceedWhen(@NotNull
@NotNull ProceedStrategy strategy)
List<BranchNode> getBranches()
Copyright © 2021. All rights reserved.