org.qi4j.library.scheduler.timeline
Interface Timeline
- All Known Implementing Classes:
- TimelineScheduleMixin, TimelineSchedulerServiceMixin
public interface Timeline
Timeline allow to browse in past and future Task runs.
getLastRecords
@UnitOfWorkPropagation(value=MANDATORY)
java.lang.Iterable<TimelineRecord> getLastRecords(int maxResults)
- Parameters:
maxResults
- Maximum number of TimelineRecord to compute
- Returns:
- Last past records
getNextRecords
@UnitOfWorkPropagation(value=MANDATORY)
java.lang.Iterable<TimelineRecord> getNextRecords(int maxResults)
- Parameters:
maxResults
- Maximum number of TimelineRecord to compute
- Returns:
- Next running or future records
getRecords
@UnitOfWorkPropagation(value=MANDATORY)
java.lang.Iterable<TimelineRecord> getRecords(org.joda.time.DateTime from,
org.joda.time.DateTime to)
- Parameters:
from
- Lower limitto
- Upper limit
- Returns:
- Records between the given dates
getRecords
@UnitOfWorkPropagation(value=MANDATORY)
java.lang.Iterable<TimelineRecord> getRecords(long from,
long to)
- Parameters:
from
- Lower limitto
- Upper limit
- Returns:
- Records between the given dates