com.caucho.util
Interface TimeIntervalScheduler<E extends TimeIntervalEntry>

All Known Implementing Classes:
AbstractSoftScheduler

public interface TimeIntervalScheduler<E extends TimeIntervalEntry>

Defines an interface for scheduling "something" on an entry that a provider of that service would implement.


Nested Class Summary
static class TimeIntervalScheduler.ScheduleType
           
 
Method Summary
 TimeInterval getSchedulerInterval(long time)
           
 TimeInterval getSchedulerInterval(long time, long intervalDuration)
           
 void schedule(E entry)
          Schedules an entryy using the time interval of the entry.
 void schedule(E entry, long time)
           
 void schedule(E entry, TimeInterval interval)
          Schedules entry, based on the time interval provided.
 

Method Detail

schedule

void schedule(E entry)
Schedules an entryy using the time interval of the entry.

Parameters:
entry -

schedule

void schedule(E entry,
              long time)

schedule

void schedule(E entry,
              TimeInterval interval)
Schedules entry, based on the time interval provided.

Parameters:
entry -
interval -

getSchedulerInterval

TimeInterval getSchedulerInterval(long time)

getSchedulerInterval

TimeInterval getSchedulerInterval(long time,
                                  long intervalDuration)