| Constructor and Description |
|---|
QueuedJobFuture(Job job,
Queue<? extends Job> queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
addThread(Thread thread) |
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
done() |
Handleable |
get() |
Handleable |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
removeThread(Thread thread) |
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Futurepublic Handleable get() throws InterruptedException
get in interface FutureInterruptedExceptionpublic Handleable get(long timeout, @Nonnull TimeUnit unit) throws InterruptedException, TimeoutException
get in interface FutureInterruptedExceptionTimeoutExceptionpublic void removeThread(Thread thread)
removeThread in interface JobFutureCopyright © 2018. All rights reserved.