org.apache.curator.framework.recipes.leader
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
public class CancelLeadershipException
- extends RuntimeException
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:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
CancelLeadershipException
public CancelLeadershipException()
CancelLeadershipException
public CancelLeadershipException(String message)
CancelLeadershipException
public CancelLeadershipException(String message,
Throwable cause)
CancelLeadershipException
public CancelLeadershipException(Throwable cause)
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.