RequestType - the type of AWS request that is inputResultType - the type of AWS request that is returnedpublic abstract class ExponentialBackoff<RequestType,ResultType>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExponentialBackoff.DeleteItem |
static class |
ExponentialBackoff.GetItem |
static class |
ExponentialBackoff.Query |
static class |
ExponentialBackoff.Scan |
static class |
ExponentialBackoff.UpdateItem |
| Modifier and Type | Field and Description |
|---|---|
protected DynamoDBDelegate |
delegate |
static java.lang.String |
DELETE_ITEM_RETRIES |
static java.lang.String |
GET_ITEM_RETRIES |
static java.lang.String |
QUERY_RETRIES |
protected RequestType |
request |
protected ResultType |
result |
static java.lang.String |
RETRIES |
static java.lang.String |
SCAN_RETRIES |
static java.lang.String |
UPDATE_ITEM_RETRIES |
| Modifier | Constructor and Description |
|---|---|
protected |
ExponentialBackoff(RequestType requestType,
DynamoDBDelegate delegate,
java.lang.String apiNameTries) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ResultType |
call() |
protected abstract java.lang.String |
getTableName() |
ResultType |
runWithBackoff() |
public static final java.lang.String RETRIES
public static final java.lang.String SCAN_RETRIES
public static final java.lang.String QUERY_RETRIES
public static final java.lang.String UPDATE_ITEM_RETRIES
public static final java.lang.String DELETE_ITEM_RETRIES
public static final java.lang.String GET_ITEM_RETRIES
protected final RequestType request
protected ResultType result
protected final DynamoDBDelegate delegate
protected ExponentialBackoff(RequestType requestType, DynamoDBDelegate delegate, java.lang.String apiNameTries)
protected abstract ResultType call() throws com.thinkaurelius.titan.diskstorage.BackendException
com.thinkaurelius.titan.diskstorage.BackendExceptionprotected abstract java.lang.String getTableName()
public ResultType runWithBackoff() throws com.thinkaurelius.titan.diskstorage.BackendException
com.thinkaurelius.titan.diskstorage.BackendException