| Modifier and Type | Field and Description |
|---|---|
private DynamoDBDecoder<T> |
decoder |
private Future<com.amazonaws.services.dynamodbv2.model.GetItemResult> |
dynFuture |
| Constructor and Description |
|---|
DynamoDBFuture(Future<com.amazonaws.services.dynamodbv2.model.GetItemResult> dynFuture,
DynamoDBDecoder<T> decoder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
private final Future<com.amazonaws.services.dynamodbv2.model.GetItemResult> dynFuture
private final DynamoDBDecoder<T> decoder
public DynamoDBFuture(Future<com.amazonaws.services.dynamodbv2.model.GetItemResult> dynFuture, DynamoDBDecoder<T> decoder)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutException