public class AerospikeUserSegmentsFuture extends Object implements Future<UserSegments>
UserSegments
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 UserSegments |
userSegments |
Constructor and Description |
---|
AerospikeUserSegmentsFuture() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
UserSegments |
get() |
UserSegments |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setFutureResult(String uid,
com.aerospike.client.Record record) |
private UserSegments userSegments
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<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