Class AtomicBackoff

java.lang.Object
io.grpc.internal.AtomicBackoff

@ThreadSafe public final class AtomicBackoff extends Object
A long atomically updated due to errors caused by the value being too small.
  • Constructor Details

    • AtomicBackoff

      public AtomicBackoff(String name, long value)
      Construct an atomic with initial value value. name is used for logging.
  • Method Details

    • getState

      public AtomicBackoff.State getState()
      Returns the current state. The state instance's value does not change of time.