@Deprecated public class FutureAdapter<V> extends Object implements Future<V>
| 构造器和说明 |
|---|
FutureAdapter(CompletableFuture<Object> future)
已过时。
|
FutureAdapter(ResponseFuture responseFuture)
已过时。
|
public FutureAdapter(CompletableFuture<Object> future)
public FutureAdapter(ResponseFuture responseFuture)
public ResponseFuture getFuture()
public boolean isCancelled()
isCancelled 在接口中 Future<V>public V get() throws InterruptedException, ExecutionException
get 在接口中 Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get 在接口中 Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.