@Deprecated public class FutureAdapter<V> extends Object implements Future<V>
| Constructor and Description |
|---|
FutureAdapter(CompletableFuture<Object> future)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
Deprecated.
|
V |
get()
Deprecated.
|
V |
get(long timeout,
TimeUnit unit)
Deprecated.
|
ResponseFuture |
getFuture()
Deprecated.
|
boolean |
isCancelled()
Deprecated.
|
boolean |
isDone()
Deprecated.
|
public FutureAdapter(CompletableFuture<Object> future)
public ResponseFuture getFuture()
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>public V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.