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 intcntprotected longinitial_delayprotected longperiodprotected TimeScheduler3.TaskTypetype-
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 voidrun()-
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:
runin interfacejava.lang.Runnable- Overrides:
runin classTimeScheduler3.Task
-
-