public class KilledFlowException
An exception that is thrown when a flow has been killed.
This exception can be returned and thrown to RPC clients waiting for the result of a flow's future.
It can also be used in conjunction with FlowLogic.isKilled
to escape long-running computation loops when a flow has been killed.
FlowLogic.isKilled
Constructor and Description |
---|
KilledFlowException(StateMachineRunId id,
java.lang.String message)
An exception that is thrown when a flow has been killed.
|
KilledFlowException(StateMachineRunId id) |
Modifier and Type | Method and Description |
---|---|
StateMachineRunId |
getId() |
public KilledFlowException(StateMachineRunId id, java.lang.String message)
An exception that is thrown when a flow has been killed.
This exception can be returned and thrown to RPC clients waiting for the result of a flow's future.
It can also be used in conjunction with FlowLogic.isKilled
to escape long-running computation loops when a flow has been killed.
FlowLogic.isKilled
public KilledFlowException(StateMachineRunId id)
public StateMachineRunId getId()