Package org.jgroups.util
Class TimeScheduler3.RecurringTask
java.lang.Object
org.jgroups.util.TimeScheduler3.Task
org.jgroups.util.TimeScheduler3.RecurringTask
- All Implemented Interfaces:
Comparable<Delayed>,Runnable,Delayed,Future
- Enclosing class:
TimeScheduler3
Tasks which runs more than once, either dynamic, fixed-rate or fixed-delay, until cancelled
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final longprotected final longprotected final TimeScheduler3.TaskTypeFields inherited from class org.jgroups.util.TimeScheduler3.Task
can_block, cancelled, creation_time, delay, done, runnable -
Constructor Summary
ConstructorsConstructorDescriptionRecurringTask(Runnable runnable, TimeScheduler3.TaskType type, long initial_delay, long delay, TimeUnit unit, boolean can_block) -
Method Summary
Methods inherited from class org.jgroups.util.TimeScheduler3.Task
canBlock, cancel, compareTo, get, get, getDelay, getRunnable, isCancelled, isDone, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Field Details
-
type
-
period
protected final long period -
initial_delay
protected final long initial_delay -
cnt
protected int cnt
-
-
Constructor Details
-
RecurringTask
public RecurringTask(Runnable runnable, TimeScheduler3.TaskType type, long initial_delay, long delay, TimeUnit unit, boolean can_block)
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classTimeScheduler3.Task
-