@Internal public final class NeverCompleteFuture extends Object implements ScheduledFuture<Object>
Constructor and Description |
---|
NeverCompleteFuture(long delayMillis) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
int |
compareTo(Delayed o) |
Object |
get() |
Object |
get(long timeout,
TimeUnit unit) |
long |
getDelay(TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public int compareTo(@Nonnull Delayed o)
compareTo
in interface Comparable<Delayed>
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<Object>
public Object get() throws InterruptedException
get
in interface Future<Object>
InterruptedException
public Object get(long timeout, @Nonnull TimeUnit unit) throws InterruptedException, TimeoutException
get
in interface Future<Object>
InterruptedException
TimeoutException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.