org.jgroups.util
Interface TimeScheduler.Task

All Superinterfaces:
java.lang.Runnable
Enclosing class:
TimeScheduler

public static interface TimeScheduler.Task
extends java.lang.Runnable

The interface that submitted tasks must implement


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

Method Detail

nextInterval

long nextInterval()
Returns:
the next schedule interval. If <= 0 the task will not be re-scheduled

run

void run()
Execute the task

Specified by:
run in interface java.lang.Runnable


Copyright © 1998-2008 Bela Ban. All Rights Reserved.