public class RetryHelper extends Object
A helper class which contains methods related to retrying operations.
| Constructor and Description |
|---|
RetryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
retryOrCancel(CoreEnvironment environment,
CouchbaseRequest request,
com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Either retry or cancel a request, based on the strategy used.
|
public static void retryOrCancel(CoreEnvironment environment, CouchbaseRequest request, com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Either retry or cancel a request, based on the strategy used.
environment - the core environment for context.request - the request to either retry or cancel.responseBuffer - the response buffer where to maybe retry on.Copyright © 2016 Couchbase, Inc.. All rights reserved.