Package org.jbpm.kie.services.impl.admin
Class TimerInstanceImpl
- java.lang.Object
-
- org.jbpm.kie.services.impl.admin.TimerInstanceImpl
-
- All Implemented Interfaces:
Serializable,TimerInstance
public class TimerInstanceImpl extends Object implements TimerInstance
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimerInstanceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DategetActivationTime()Returns date when the timer was activated/createdlonggetDelay()Returns delay that comes from definitionlonggetId()Returns id of the timerDategetLastFireTime()Returns date when the timer was fired last time, can be nullDategetNextFireTime()Returns next date when the timer is expected to firelonggetPeriod()Returns period that comes from definition - only for repeatable timerslonggetProcessInstanceId()Returns process instance id that timer belongs tointgetRepeatLimit()Returns repeat limit that comes from definition - only for repeatable timerslonggetSessionId()Returns session id that was used to create the timerlonggetTimerId()Returns unique id of the timerStringgetTimerName()Returns name of the timer - taken from timer node in the processinthashCode()voidsetActivationTime(Date activationTime)voidsetDelay(long delay)voidsetId(long id)voidsetLastFireTime(Date lastFireTime)voidsetNextFireTime(Date nextFireTime)voidsetPeriod(long period)voidsetProcessInstanceId(long processInstanceId)voidsetRepeatLimit(int repeatLimit)voidsetSessionId(long sessionId)voidsetTimerId(long timerId)voidsetTimerName(String timerName)StringtoString()
-
-
-
Method Detail
-
getTimerName
public String getTimerName()
Description copied from interface:TimerInstanceReturns name of the timer - taken from timer node in the process- Specified by:
getTimerNamein interfaceTimerInstance- Returns:
- timer name
-
setTimerName
public void setTimerName(String timerName)
-
getId
public long getId()
Description copied from interface:TimerInstanceReturns id of the timer- Specified by:
getIdin interfaceTimerInstance- Returns:
- timer id
-
setId
public void setId(long id)
-
getTimerId
public long getTimerId()
Description copied from interface:TimerInstanceReturns unique id of the timer- Specified by:
getTimerIdin interfaceTimerInstance- Returns:
- timer unique id
-
setTimerId
public void setTimerId(long timerId)
-
getActivationTime
public Date getActivationTime()
Description copied from interface:TimerInstanceReturns date when the timer was activated/created- Specified by:
getActivationTimein interfaceTimerInstance- Returns:
- timer activation/creation date
-
setActivationTime
public void setActivationTime(Date activationTime)
-
getLastFireTime
public Date getLastFireTime()
Description copied from interface:TimerInstanceReturns date when the timer was fired last time, can be null- Specified by:
getLastFireTimein interfaceTimerInstance- Returns:
- timer last fire time
-
setLastFireTime
public void setLastFireTime(Date lastFireTime)
-
getNextFireTime
public Date getNextFireTime()
Description copied from interface:TimerInstanceReturns next date when the timer is expected to fire- Specified by:
getNextFireTimein interfaceTimerInstance- Returns:
- timer next fire time
-
setNextFireTime
public void setNextFireTime(Date nextFireTime)
-
getDelay
public long getDelay()
Description copied from interface:TimerInstanceReturns delay that comes from definition- Specified by:
getDelayin interfaceTimerInstance- Returns:
- timer delay
-
setDelay
public void setDelay(long delay)
-
getPeriod
public long getPeriod()
Description copied from interface:TimerInstanceReturns period that comes from definition - only for repeatable timers- Specified by:
getPeriodin interfaceTimerInstance- Returns:
- timer period
-
setPeriod
public void setPeriod(long period)
-
getRepeatLimit
public int getRepeatLimit()
Description copied from interface:TimerInstanceReturns repeat limit that comes from definition - only for repeatable timers- Specified by:
getRepeatLimitin interfaceTimerInstance- Returns:
- timer repeat limit
-
setRepeatLimit
public void setRepeatLimit(int repeatLimit)
-
getProcessInstanceId
public long getProcessInstanceId()
Description copied from interface:TimerInstanceReturns process instance id that timer belongs to- Specified by:
getProcessInstanceIdin interfaceTimerInstance- Returns:
- process instance id
-
setProcessInstanceId
public void setProcessInstanceId(long processInstanceId)
-
getSessionId
public long getSessionId()
Description copied from interface:TimerInstanceReturns session id that was used to create the timer- Specified by:
getSessionIdin interfaceTimerInstance- Returns:
- session id
-
setSessionId
public void setSessionId(long sessionId)
-
-