Class CancelLeadershipException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CancelLeadershipException
    extends java.lang.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
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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​(java.lang.String message)
      • CancelLeadershipException

        public CancelLeadershipException​(java.lang.String message,
                                         java.lang.Throwable cause)
      • CancelLeadershipException

        public CancelLeadershipException​(java.lang.Throwable cause)