Class CancelLeadershipException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.curator.framework.recipes.leader.CancelLeadershipException
- All Implemented Interfaces:
Serializable
When thrown from
ConnectionStateListener.stateChanged(CuratorFramework, ConnectionState)
, will
cause LeaderSelector.interruptLeadership()
to get called. IMPORTANT: this is only supported
when thrown from ConnectionStateListener.stateChanged(CuratorFramework, ConnectionState)
.- See Also:
-
Constructor Summary
ConstructorDescriptionCancelLeadershipException
(String message) CancelLeadershipException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CancelLeadershipException
public CancelLeadershipException() -
CancelLeadershipException
-
CancelLeadershipException
-
CancelLeadershipException
-