public class KeyFuture<T,ID extends Serializable> extends Object implements Future<ID>
| Constructor and Description |
|---|
KeyFuture(Mapper<T,ID> mapper,
Future<?> future,
T entity,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean b) |
ID |
get() |
ID |
get(long l,
TimeUnit timeUnit) |
boolean |
isCancelled() |
boolean |
isDone() |
public boolean cancel(boolean b)
cancel in interface Future<ID extends Serializable>public boolean isCancelled()
isCancelled in interface Future<ID extends Serializable>public boolean isDone()
isDone in interface Future<ID extends Serializable>public ID get() throws InterruptedException, ExecutionException
get in interface Future<ID extends Serializable>InterruptedExceptionExecutionExceptionpublic ID get(long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<ID extends Serializable>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2014 Wadpam. All Rights Reserved.