public class SimpleFutureImpl<V> extends Object implements SimpleFuture<V>
dumb| Constructor and Description |
|---|
SimpleFutureImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
fail(Throwable e) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
set(V v) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdumbpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>public void fail(Throwable e)
fail in interface SimpleFuture<V>public V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic void set(V v)
set in interface SimpleFuture<V>public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.