public static final class WorkQueue.ProcessScheduledFuture<V> extends Object implements RunnableScheduledFuture<V>
| Constructor and Description |
|---|
ProcessScheduledFuture(RunnableScheduledFuture<V> task,
IRunnable runnable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
int |
compareTo(Delayed o) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
long |
getDelay(TimeUnit unit) |
IProcessIdentfier |
getIdentifier() |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isPeriodic() |
void |
run() |
public ProcessScheduledFuture(RunnableScheduledFuture<V> task, IRunnable runnable)
public IProcessIdentfier getIdentifier()
public void run()
run in interface Runnablerun in interface RunnableFuture<V>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>public V get() throws InterruptedException, ExecutionException
get in interface Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic int compareTo(Delayed o)
compareTo in interface Comparable<Delayed>public boolean isPeriodic()
isPeriodic in interface RunnableScheduledFuture<V>Copyright © 2007–2019 Andreas W. Bartels. All rights reserved.