Class Backoff

java.lang.Object
io.streamnative.oxia.client.util.Backoff
All Implemented Interfaces:
io.grpc.internal.BackoffPolicy

public final class Backoff extends Object implements io.grpc.internal.BackoffPolicy
  • Field Details

    • DEFAULT_INITIAL_DELAY_MILLIS

      public static final long DEFAULT_INITIAL_DELAY_MILLIS
      See Also:
    • DEFAULT_MAX_DELAY_SECONDS

      public static final long DEFAULT_MAX_DELAY_SECONDS
      See Also:
  • Constructor Details

    • Backoff

      public Backoff()
    • Backoff

      public Backoff(long initialDelay, TimeUnit unitInitialDelay, long maxDelay, TimeUnit unitMaxDelay)
  • Method Details

    • nextDelayMillis

      public long nextDelayMillis()
    • reset

      public void reset()
    • nextBackoffNanos

      public long nextBackoffNanos()
      Specified by:
      nextBackoffNanos in interface io.grpc.internal.BackoffPolicy