Package io.streamnative.oxia.client.util
Class Backoff
java.lang.Object
io.streamnative.oxia.client.util.Backoff
- All Implemented Interfaces:
io.grpc.internal.BackoffPolicy
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.grpc.internal.BackoffPolicy
io.grpc.internal.BackoffPolicy.Provider -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
-
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
-
-
Method Details
-
nextDelayMillis
public long nextDelayMillis() -
reset
public void reset() -
nextBackoffNanos
public long nextBackoffNanos()- Specified by:
nextBackoffNanosin interfaceio.grpc.internal.BackoffPolicy
-