T - type of the ScheduledFuturepublic final class CompletedScheduledFuture<T> extends Object implements ScheduledFuture<T>
ScheduledFuture implementation.public int compareTo(Delayed o)
compareTo 在接口中 Comparable<Delayed>public boolean isCancelled()
isCancelled 在接口中 Future<T>public T get() throws InterruptedException, ExecutionException
get 在接口中 Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get 在接口中 Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic static <T> CompletedScheduledFuture<T> create(T value)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.