Package 

Interface ReconnectPolicy


  • 
    public interface ReconnectPolicy
    
                        

    Policy for reconnections that determines the delay between retries.

    • Method Summary

      Modifier and Type Method Description
      abstract Duration getNextRetryDelay(ReconnectContext context) Called after a disconnect is detected, and between each reconnect attempt.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getNextRetryDelay

         abstract Duration getNextRetryDelay(ReconnectContext context)

        Called after a disconnect is detected, and between each reconnect attempt.

        Note: To prevent infinitely retrying, there is a hard cap of 30 retries, regardless of policy.