| 构造器和说明 |
|---|
DoneFuture(T x) |
public DoneFuture(T x)
public T get() throws InterruptedException, ExecutionException
get 在接口中 Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get 在接口中 Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isCancelled()
isCancelled 在接口中 Future<T>Copyright © 2017. All rights reserved.