org.apache.curator.framework.recipes.leader
Class CancelLeadershipException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
CancelLeadershipException()
           
CancelLeadershipException(String message)
           
CancelLeadershipException(String message, Throwable cause)
           
CancelLeadershipException(Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.