- All Implemented Interfaces:
public class BestEffortRetryStrategy extends Object implements RetryStrategy
RetryStrategythat will retry until the max request lifetime is reached.
- Michael Nitschinger
Fields Modifier and Type Field Description
static BestEffortRetryStrategyA reusable instance of this strategy.
INSTANCEpublic static final BestEffortRetryStrategy INSTANCEA reusable instance of this strategy.
shouldRetryDescription copied from interface:
RetryStrategyDecides whether the given
CouchbaseRequestshould be retried or cancelled.
shouldRetryObservepublic boolean shouldRetryObserve()Description copied from interface:
ObserveRequests should be retried or cancelled when an error happens. When false is returned, as soon as an error happens (for example one of the nodes that need to be reached does not have an active partition because of a node failure) the whole observe sequence is aborted. If retried, errors are swallowed and the observe cycle will start again.
toStringpublic String toString()