com.cometway.util
Interface IScheduler

All Known Implementing Classes:
Scheduler

public interface IScheduler

A class can implement IScheduler when it wants manage objects implementing the ISchedulable interface.

See Also:
ISchedulable

Method Summary
 boolean schedule(ISchedulable s)
          Adds a ISchedulable item to the Scheduler.
 boolean unschedule(ISchedulable s)
          Removes a ISchedulable item from the Scheduler.
 

Method Detail

schedule

boolean schedule(ISchedulable s)
Adds a ISchedulable item to the Scheduler.

Parameters:
s - an object which implements the ISchedulable interface.
Returns:
true if the object was added; false otherwise.
See Also:
ISchedulable

unschedule

boolean unschedule(ISchedulable s)
Removes a ISchedulable item from the Scheduler.

Parameters:
s - an object which implements the ISchedulable interface.
Returns:
true if the object was removed; false if the object was invalid.
See Also:
ISchedulable