public class AndJoin extends AbstractGateway
AndFork or OrFork. Only when all threads
of execution arrived at the AndJoin, execution continues along the subsequent branch.
The underlying token model restricts the usage of AndJoins to be in balanced pairs with AndFork or OrForks.
| Constructor and Description |
|---|
AndJoin(int id) |
AndJoin(int id,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(GraphEngine engine,
Token token)
Called when the
GraphEngine cancels the execution of a
Token, that is currently pointing to this node and is in a wait
state. |
void |
execute(GraphEngine engine,
Token token)
Performs node specific logic.
|
storegetId, getName, toStringpublic AndJoin(int id)
public AndJoin(int id,
String name)
public void execute(GraphEngine engine, Token token)
NodeGraphEngineFacade#complete(WorkItem) method
must be called to continue executing the GraphInstance.engine - the GraphEngine which is performing the executiontoken - the Token which is currently executing in this nodepublic void cancel(GraphEngine engine, Token token)
NodeGraphEngine cancels the execution of a
Token, that is currently pointing to this node and is in a wait
state.engine - the GraphEngine which is performing the executiontoken - the Token pointing to this nodeCopyright © 2018. All rights reserved.