| Constructor and Description |
|---|
BasicJobFuture(Job job,
Queue<? extends Job> queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
addThread(Thread thread) |
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
done(Boolean result) |
Boolean |
get() |
Boolean |
get(long timeout,
TimeUnit unit) |
int |
getThreadCount() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
removeThread(Thread thread) |
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<Boolean>public Boolean get() throws InterruptedException
get in interface Future<Boolean>InterruptedExceptionpublic Boolean get(long timeout, @Nonnull TimeUnit unit) throws InterruptedException, TimeoutException
get in interface Future<Boolean>InterruptedExceptionTimeoutExceptionpublic void addThread(Thread thread)
public void removeThread(Thread thread)
removeThread in interface JobFuture<Boolean>public int getThreadCount()
getThreadCount in interface JobFuture<Boolean>Copyright © 2018. All rights reserved.