Interface Delay.StatefulDelay

  • Enclosing class:
    Delay

    public static interface Delay.StatefulDelay
    Interface to be implemented by stateful Delays. Stateful delays can get reset once a condition (such as successful reconnect) is met. Stateful delays should not be shared by multiple connections but each connection should use its own instance.
    See Also:
    Supplier, DefaultClientResources.Builder.reconnectDelay(Supplier)
    • Method Detail

      • reset

        void reset()
        Reset this delay state. Resetting prepares a stateful delay for its next usage.