Interface ReconnectionPolicy.ReconnectionSchedule

  • Enclosing interface:
    ReconnectionPolicy

    public static interface ReconnectionPolicy.ReconnectionSchedule
    Schedules reconnection attempts to a node.
    • Method Detail

      • nextDelayMs

        long nextDelayMs()
        When to attempt the next reconnection.

        This method will be called once when the host is detected down to schedule the first reconnection attempt, and then once after each failed reconnection attempt to schedule the next one. Hence each call to this method are free to return a different value.

        Returns:
        a time in milliseconds to wait before attempting the next reconnection.