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 boolean
equals(Object obj)
Date
getActivationTime()
Returns date when the timer was activated/createdlong
getDelay()
Returns delay that comes from definitionlong
getId()
Returns id of the timerDate
getLastFireTime()
Returns date when the timer was fired last time, can be nullDate
getNextFireTime()
Returns next date when the timer is expected to firelong
getPeriod()
Returns period that comes from definition - only for repeatable timerslong
getProcessInstanceId()
Returns process instance id that timer belongs toint
getRepeatLimit()
Returns repeat limit that comes from definition - only for repeatable timerslong
getSessionId()
Returns session id that was used to create the timerlong
getTimerId()
Returns unique id of the timerString
getTimerName()
Returns name of the timer - taken from timer node in the processint
hashCode()
void
setActivationTime(Date activationTime)
void
setDelay(long delay)
void
setId(long id)
void
setLastFireTime(Date lastFireTime)
void
setNextFireTime(Date nextFireTime)
void
setPeriod(long period)
void
setProcessInstanceId(long processInstanceId)
void
setRepeatLimit(int repeatLimit)
void
setSessionId(long sessionId)
void
setTimerId(long timerId)
void
setTimerName(String timerName)
String
toString()
-
-
-
Method Detail
-
getTimerName
public String getTimerName()
Description copied from interface:TimerInstance
Returns name of the timer - taken from timer node in the process- Specified by:
getTimerName
in interfaceTimerInstance
- Returns:
- timer name
-
setTimerName
public void setTimerName(String timerName)
-
getId
public long getId()
Description copied from interface:TimerInstance
Returns id of the timer- Specified by:
getId
in interfaceTimerInstance
- Returns:
- timer id
-
setId
public void setId(long id)
-
getTimerId
public long getTimerId()
Description copied from interface:TimerInstance
Returns unique id of the timer- Specified by:
getTimerId
in interfaceTimerInstance
- Returns:
- timer unique id
-
setTimerId
public void setTimerId(long timerId)
-
getActivationTime
public Date getActivationTime()
Description copied from interface:TimerInstance
Returns date when the timer was activated/created- Specified by:
getActivationTime
in interfaceTimerInstance
- Returns:
- timer activation/creation date
-
setActivationTime
public void setActivationTime(Date activationTime)
-
getLastFireTime
public Date getLastFireTime()
Description copied from interface:TimerInstance
Returns date when the timer was fired last time, can be null- Specified by:
getLastFireTime
in interfaceTimerInstance
- Returns:
- timer last fire time
-
setLastFireTime
public void setLastFireTime(Date lastFireTime)
-
getNextFireTime
public Date getNextFireTime()
Description copied from interface:TimerInstance
Returns next date when the timer is expected to fire- Specified by:
getNextFireTime
in interfaceTimerInstance
- Returns:
- timer next fire time
-
setNextFireTime
public void setNextFireTime(Date nextFireTime)
-
getDelay
public long getDelay()
Description copied from interface:TimerInstance
Returns delay that comes from definition- Specified by:
getDelay
in interfaceTimerInstance
- Returns:
- timer delay
-
setDelay
public void setDelay(long delay)
-
getPeriod
public long getPeriod()
Description copied from interface:TimerInstance
Returns period that comes from definition - only for repeatable timers- Specified by:
getPeriod
in interfaceTimerInstance
- Returns:
- timer period
-
setPeriod
public void setPeriod(long period)
-
getRepeatLimit
public int getRepeatLimit()
Description copied from interface:TimerInstance
Returns repeat limit that comes from definition - only for repeatable timers- Specified by:
getRepeatLimit
in interfaceTimerInstance
- Returns:
- timer repeat limit
-
setRepeatLimit
public void setRepeatLimit(int repeatLimit)
-
getProcessInstanceId
public long getProcessInstanceId()
Description copied from interface:TimerInstance
Returns process instance id that timer belongs to- Specified by:
getProcessInstanceId
in interfaceTimerInstance
- Returns:
- process instance id
-
setProcessInstanceId
public void setProcessInstanceId(long processInstanceId)
-
getSessionId
public long getSessionId()
Description copied from interface:TimerInstance
Returns session id that was used to create the timer- Specified by:
getSessionId
in interfaceTimerInstance
- Returns:
- session id
-
setSessionId
public void setSessionId(long sessionId)
-
-