| Constructor and Description |
|---|
BasicFutureJob(Request request,
Handleable handler,
Priority jobPriority,
Priority jobPriorityFloor,
Queue<Job> queue) |
| Modifier and Type | Method and Description |
|---|---|
Request |
get() |
Request |
get(long timeout,
TimeUnit unit) |
void |
set(Request result)
Sets the result of this future to the given value unless
this future has already been set or has been cancelled.
|
cancel, compareTo, done, getHandler, getPriority, getRequest, getTryCount, isCancelled, isDone, reQueueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, isCancelled, isDonecancel, done, getHandler, getPriority, getRequest, getTryCount, isCancelled, isDonecompareTopublic void set(Request result)
FutureJobpublic Request get() throws InterruptedException
get in interface Future<Request>InterruptedExceptionpublic Request get(long timeout, @Nonnull TimeUnit unit) throws InterruptedException, TimeoutException
get in interface Future<Request>InterruptedExceptionTimeoutExceptionCopyright © 2018. All rights reserved.