public class BackoffWrapper extends AbstractUnwrappable<Backoff> implements Backoff
Backoff.| Modifier | Constructor and Description |
|---|---|
protected |
BackoffWrapper(Backoff delegate) |
| Modifier and Type | Method and Description |
|---|---|
long |
nextDelayMillis(int numAttemptsSoFar)
Returns the number of milliseconds to wait for before attempting a retry.
|
as, delegate, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitas, exponential, exponential, fibonacci, fixed, of, ofDefault, random, random, withJitter, withJitter, withJitter, withMaxAttempts, withoutDelayprotected BackoffWrapper(Backoff delegate)
public long nextDelayMillis(int numAttemptsSoFar)
BackoffnextDelayMillis in interface BackoffnumAttemptsSoFar - the number of attempts made by a client so far, including the first attempt and
its following retries.Copyright © 2020 LeanCloud. All rights reserved.