org.jgroups.util
Interface TimeScheduler.Task

All Known Subinterfaces:
TimeScheduler.CancellableTask
Enclosing interface:
TimeScheduler

public static interface TimeScheduler.Task

The interface that submitted tasks must implement


Method Summary
 boolean cancelled()
           
 long nextInterval()
           
 void run()
          Execute the task
 

Method Detail

cancelled

public boolean cancelled()
Returns:
true if task is cancelled and shouldn't be scheduled again

nextInterval

public long nextInterval()
Returns:
the next schedule interval

run

public void run()
Execute the task



Copyright ? 1998-2005 Bela Ban. All Rights Reserved.