Package io.aeron.cluster.service
Class ClusterTerminationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.agrona.concurrent.AgentTerminationException
io.aeron.cluster.service.ClusterTerminationException
- All Implemented Interfaces:
Serializable
Used to terminate the
Agent within a cluster in an expected/unexpected fashion.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an exception used to terminate the cluster withisExpected()set to true.ClusterTerminationException(boolean isExpected) Construct an exception used to terminate the cluster. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClusterTerminationException
public ClusterTerminationException()Construct an exception used to terminate the cluster withisExpected()set to true. -
ClusterTerminationException
public ClusterTerminationException(boolean isExpected) Construct an exception used to terminate the cluster.- Parameters:
isExpected- true if the termination is expected, i.e. it was requested.
-
-
Method Details
-
isExpected
public boolean isExpected()Whether the termination is expected.- Returns:
- true if expected otherwise false.
-