org.qi4j.library.scheduler.timeline
Interface Timeline

All Known Subinterfaces:
TimelineService
All Known Implementing Classes:
TimelineService.Mixin

public interface Timeline

Timeline allow to browse in past and future Task runs.


Method Summary
 Iterable<TimelineRecord> getLastRecords(int maxResults)
           
 Iterable<TimelineRecord> getNextRecords(int maxResults)
           
 Iterable<TimelineRecord> getRecords(Date from, Date to)
           
 Iterable<TimelineRecord> getRecords(long from, long to)
           
 

Method Detail

getLastRecords

Iterable<TimelineRecord> getLastRecords(int maxResults)
Parameters:
maxResults - Maximum number of TimelineRecord to compute
Returns:
Last past records

getNextRecords

Iterable<TimelineRecord> getNextRecords(int maxResults)
Parameters:
maxResults - Maximum number of TimelineRecord to compute
Returns:
Next running or future records

getRecords

Iterable<TimelineRecord> getRecords(Date from,
                                    Date to)
Parameters:
from - Lower limit
to - Upper limit
Returns:
Records between the given dates

getRecords

Iterable<TimelineRecord> getRecords(long from,
                                    long to)
Parameters:
from - Lower limit
to - Upper limit
Returns:
Records between the given dates