org.jgroups.util

Interface TimeScheduler.Task

Known Subinterfaces:
TimeScheduler.CancellableTask

public static interface TimeScheduler.Task

The interface that submitted tasks must implement

Method Summary

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

Method Details

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 B) 1998-2005 Bela Ban. All Rights Reserved.