| Modifier and Type | Field and Description |
|---|---|
Boolean |
finished |
Object |
lock |
boolean |
markedForCancellation |
| Constructor and Description |
|---|
MWFuture(MWRequestImpl<T> request) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setState(int newState) |
public final Object lock
public Boolean finished
public final boolean markedForCancellation
public MWFuture(MWRequestImpl<T> request)
public void setState(int newState)
public T get() throws ExecutionException, InterruptedException
get in interface Future<T>ExecutionExceptionInterruptedExceptionpublic boolean isCancelled()
isCancelled in interface Future<T>public boolean cancel(boolean mayInterruptIfRunning)
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2015–2021. All rights reserved.