public class FailFastRetryStrategy extends Object implements RetryStrategy
A RetryStrategy
that will never retry and cancel right away.
Modifier and Type | Field and Description |
---|---|
static FailFastRetryStrategy |
INSTANCE
A reusable instance of this strategy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldRetry(CouchbaseRequest request,
CoreEnvironment env)
Decides whether the given
CouchbaseRequest should be retried or cancelled. |
String |
toString() |
public static final FailFastRetryStrategy INSTANCE
A reusable instance of this strategy.
public boolean shouldRetry(CouchbaseRequest request, CoreEnvironment env)
RetryStrategy
Decides whether the given CouchbaseRequest
should be retried or cancelled.
shouldRetry
in interface RetryStrategy
request
- the request in question.Copyright © 2014 Couchbase, Inc.