Class NotLeaderException

  • All Implemented Interfaces:
    java.io.Serializable

    public class NotLeaderException
    extends java.lang.Exception
    When a request needing a leader node was executed on a follower node. In this case the connection will reconnect automatically to the leader node. However, the request causing that exception needs to be retried if the user really wants it to be carried out.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.InetSocketAddress getLeaderEndpoint()  
      • 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
    • Method Detail

      • getLeaderEndpoint

        public java.net.InetSocketAddress getLeaderEndpoint()