protected class SubScheduledExecutorService.ScheduledRunnableTask<V> extends SubExecutorService.RunnableTask<V> implements SubScheduledExecutorService.ScheduledTask<V>
Constructor and Description |
---|
ScheduledRunnableTask(Runnable runnable,
boolean periodic) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Delayed o) |
long |
getDelay(TimeUnit unit) |
ScheduledFuture<V> |
getFuture() |
boolean |
isPeriodic() |
void |
setFuture(ScheduledFuture<V> future) |
acquireExecution, call, cancel, get, get, isCancelled, isDone, releaseExecution, run, setFuture
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireExecution, releaseExecution, setFuture
public ScheduledRunnableTask(Runnable runnable, boolean periodic)
public ScheduledFuture<V> getFuture()
getFuture
in interface SubExecutorService.Task<V>
getFuture
in interface SubScheduledExecutorService.ScheduledTask<V>
getFuture
in class SubExecutorService.RunnableTask<V>
public void setFuture(ScheduledFuture<V> future)
setFuture
in interface SubScheduledExecutorService.ScheduledTask<V>
public boolean isPeriodic()
isPeriodic
in interface SubScheduledExecutorService.ScheduledTask<V>
public int compareTo(Delayed o)
compareTo
in interface Comparable<Delayed>
Copyright © 2009–2020 OrientDB. All rights reserved.