Package org.jgroups.util
Class TimeScheduler3.RecurringTask
- java.lang.Object
-
- org.jgroups.util.TimeScheduler3.Task
-
- org.jgroups.util.TimeScheduler3.RecurringTask
-
- All Implemented Interfaces:
java.lang.Comparable<java.util.concurrent.Delayed>
,java.lang.Runnable
,java.util.concurrent.Delayed
,java.util.concurrent.Future
- Enclosing class:
- TimeScheduler3
protected class TimeScheduler3.RecurringTask extends TimeScheduler3.Task
Tasks which runs more than once, either dynamic, fixed-rate or fixed-delay, until cancelled
-
-
Field Summary
Fields Modifier and Type Field Description protected int
cnt
protected long
initial_delay
protected long
period
protected TimeScheduler3.TaskType
type
-
Fields inherited from class org.jgroups.util.TimeScheduler3.Task
can_block, cancelled, creation_time, delay, done, runnable
-
-
Constructor Summary
Constructors Constructor Description RecurringTask(java.lang.Runnable runnable, TimeScheduler3.TaskType type, long initial_delay, long delay, java.util.concurrent.TimeUnit unit, boolean can_block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
Methods inherited from class org.jgroups.util.TimeScheduler3.Task
canBlock, cancel, compareTo, get, get, getDelay, getRunnable, isCancelled, isDone, toString
-
-
-
-
Field Detail
-
type
protected final TimeScheduler3.TaskType type
-
period
protected final long period
-
initial_delay
protected final long initial_delay
-
cnt
protected int cnt
-
-
Constructor Detail
-
RecurringTask
public RecurringTask(java.lang.Runnable runnable, TimeScheduler3.TaskType type, long initial_delay, long delay, java.util.concurrent.TimeUnit unit, boolean can_block)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classTimeScheduler3.Task
-
-