org.jgroups.util

Interface TimeScheduler.Task

public interface TimeScheduler.Task

The interface that submitted tasks must implement
Method Summary
booleancancelled()
longnextInterval()
voidrun()
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.