public final class FutureCompletionHandler<V,A> extends Object implements CompletionHandler<V,A>, Future<V>
public void completed(V result, A selectionKey)
completed 在接口中 CompletionHandler<V,A>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 © 2023. All rights reserved.