org.jgroups.util
Class TimeScheduler3.RecurringTask

java.lang.Object
  extended by org.jgroups.util.TimeScheduler3.Task
      extended by 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
protected  long delay
           
protected  TimeScheduler3.TaskType type
           
 
Fields inherited from class org.jgroups.util.TimeScheduler3.Task
cancelled, done, execution_time, runnable
 
Constructor Summary
TimeScheduler3.RecurringTask(java.lang.Runnable runnable, TimeScheduler3.TaskType type, long initial_delay, long delay, java.util.concurrent.TimeUnit unit)
           
 
Method Summary
 void run()
           
 
Methods inherited from class org.jgroups.util.TimeScheduler3.Task
cancel, compareTo, get, get, getDelay, getRunnable, isCancelled, isDone, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delay

protected final long delay

type

protected final TimeScheduler3.TaskType type
Constructor Detail

TimeScheduler3.RecurringTask

public TimeScheduler3.RecurringTask(java.lang.Runnable runnable,
                                    TimeScheduler3.TaskType type,
                                    long initial_delay,
                                    long delay,
                                    java.util.concurrent.TimeUnit unit)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class TimeScheduler3.Task


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.