public class AerospikeUserAttributesFuture extends Object implements Future<UserAttributes>
UserAttributes with conversion from Aerospike typesCopyright © Enremmeta LLC 2015. All Rights Reserved.
| Modifier and Type | Field and Description |
|---|---|
private boolean |
cancelled |
private CountDownLatch |
lock |
private boolean |
received |
private long |
startRequestTime |
private UserAttributes |
userAttributes |
| Constructor and Description |
|---|
AerospikeUserAttributesFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
UserAttributes |
get() |
UserAttributes |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setFutureResult(String uid,
com.aerospike.client.Record record) |
private UserAttributes userAttributes
private boolean cancelled
private boolean received
private CountDownLatch lock
private long startRequestTime
public void setFutureResult(String uid, com.aerospike.client.Record record)
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<UserAttributes>public boolean isCancelled()
isCancelled in interface Future<UserAttributes>public boolean isDone()
isDone in interface Future<UserAttributes>public UserAttributes get() throws InterruptedException, ExecutionException
get in interface Future<UserAttributes>InterruptedExceptionExecutionExceptionpublic UserAttributes get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<UserAttributes>InterruptedExceptionExecutionExceptionTimeoutException