public class RetryAction extends Object
RetryAction describes how and when a request should be retried.| Modifier and Type | Method and Description |
|---|---|
Optional<Duration> |
duration()
If present, the operation should be retried after the given duration.
|
static RetryAction |
noRetry()
Constructs a new
RetryAction indicating that the request should not be retried. |
static RetryAction |
withDuration(Duration duration)
Constructs a new
RetryAction indicating that the request should be retried after the given duration. |
public static RetryAction withDuration(Duration duration)
RetryAction indicating that the request should be retried after the given duration.duration - the duration after which the request should be retried.RetryAction indicating retry.public static RetryAction noRetry()
RetryAction indicating that the request should not be retried.RetryAction indicating no retry.Copyright © 2021 Couchbase, Inc.. All rights reserved.