V - value type of the future.public class ScheduledFutureAdapter<V> extends Object implements ScheduledFuture<V>
Future to ScheduledFuture. This enriches the basic future with
scheduling information.| 构造器和说明 |
|---|
ScheduledFutureAdapter(Future<V> delegate,
long delay,
TimeUnit timeUnit) |
public int compareTo(@Nonnull Delayed o)
compareTo 在接口中 Comparable<Delayed>public boolean isCancelled()
isCancelled 在接口中 Future<V>public V get() throws InterruptedException, ExecutionException
get 在接口中 Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, @Nonnull TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get 在接口中 Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.