public class IntervalTrigger extends Object implements Trigger
Constructor and Description |
---|
IntervalTrigger() |
IntervalTrigger(long timestamp,
Date startTime,
Date endTime,
int repeatLimit,
long delay,
long period,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars) |
Modifier and Type | Method and Description |
---|---|
String[] |
getCalendarNames() |
org.kie.api.runtime.Calendars |
getCalendars() |
Date |
getEndTime()
Get the time at which the
CronTrigger should quit
repeating - even if repeastCount isn't yet satisfied. |
Date |
getLastFireTime() |
Date |
getNextFireTime() |
long |
getPeriod() |
int |
getRepeatCount() |
int |
getRepeatLimit() |
Date |
getStartTime() |
Date |
hasNextFireTime()
This method is used to query the trigger about the existence of a
possible next fire time, but WITHOUT changing any internal state
of the trigger.
|
Date |
nextFireTime()
This method returns the date of the next fire time and updates
the internal state of the Trigger to the following fire time
if one exists.
|
void |
readExternal(ObjectInput in) |
void |
setCalendarNames(String[] calendarNames) |
void |
setCalendars(org.kie.api.runtime.Calendars calendars) |
void |
setEndTime(Date endTime) |
void |
setNextFireTime(Date nextFireTime) |
void |
setPeriod(long period) |
void |
setRepeatCount(int repeatCount) |
void |
setRepeatLimit(int repeatLimit) |
void |
setStartTime(Date startTime) |
String |
toString() |
void |
updateToNextIncludeDate() |
void |
writeExternal(ObjectOutput out) |
public int getRepeatLimit()
public int getRepeatCount()
public Date getNextFireTime()
public long getPeriod()
public String[] getCalendarNames()
public org.kie.api.runtime.Calendars getCalendars()
public Date getStartTime()
public void setStartTime(Date startTime)
public Date getEndTime()
Get the time at which the CronTrigger
should quit
repeating - even if repeastCount isn't yet satisfied.
#getFinalFireTime()
public void setEndTime(Date endTime)
public Date getLastFireTime()
public Date hasNextFireTime()
Trigger
hasNextFireTime
in interface Trigger
public Date nextFireTime()
Trigger
nextFireTime
in interface Trigger
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
IOException
public void updateToNextIncludeDate()
public void setRepeatLimit(int repeatLimit)
public void setRepeatCount(int repeatCount)
public void setNextFireTime(Date nextFireTime)
public void setPeriod(long period)
public void setCalendarNames(String[] calendarNames)
public void setCalendars(org.kie.api.runtime.Calendars calendars)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.