Class CancelLeadershipException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.curator.framework.recipes.leader.CancelLeadershipException
-
- All Implemented Interfaces:
java.io.Serializable
public class CancelLeadershipException extends java.lang.RuntimeExceptionWhen thrown fromConnectionStateListener.stateChanged(CuratorFramework, ConnectionState), will causeLeaderSelector.interruptLeadership()to get called. IMPORTANT: this is only supported when thrown fromConnectionStateListener.stateChanged(CuratorFramework, ConnectionState).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CancelLeadershipException()CancelLeadershipException(java.lang.String message)CancelLeadershipException(java.lang.String message, java.lang.Throwable cause)CancelLeadershipException(java.lang.Throwable cause)
-
-
-
Constructor Detail
-
CancelLeadershipException
public CancelLeadershipException()
-
CancelLeadershipException
public CancelLeadershipException(java.lang.String message)
-
CancelLeadershipException
public CancelLeadershipException(java.lang.String message, java.lang.Throwable cause)
-
CancelLeadershipException
public CancelLeadershipException(java.lang.Throwable cause)
-
-