public class DynamoDBUserSegmentsFuture extends Object implements Future<UserSegments>
UserSegments
with conversion from DynamoDB typesCopyright © Enremmeta LLC 2015. All Rights Reserved.
Modifier and Type | Field and Description |
---|---|
private Future<com.amazonaws.services.dynamodbv2.model.GetItemResult> |
f |
private boolean |
isReceived |
private long |
startTime |
private UserSegments |
value |
Constructor and Description |
---|
DynamoDBUserSegmentsFuture(Future<com.amazonaws.services.dynamodbv2.model.GetItemResult> f) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
UserSegments |
get() |
UserSegments |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
private Future<com.amazonaws.services.dynamodbv2.model.GetItemResult> f
private long startTime
private boolean isReceived
private UserSegments value
public DynamoDBUserSegmentsFuture(Future<com.amazonaws.services.dynamodbv2.model.GetItemResult> f)
public boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface Future<UserSegments>
public boolean isCancelled()
isCancelled
in interface Future<UserSegments>
public boolean isDone()
isDone
in interface Future<UserSegments>
public UserSegments get() throws InterruptedException, ExecutionException
get
in interface Future<UserSegments>
InterruptedException
ExecutionException
public UserSegments get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<UserSegments>
InterruptedException
ExecutionException
TimeoutException