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 and Description
    `TimerInstanceImpl()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `Date` | `getActivationTime()` Returns date when the timer was activated/created
    `long` | `getDelay()` Returns delay that comes from definition
    `Date` | `getLastFireTime()` Returns date when the timer was fired last time, can be null
    `Date` | `getNextFireTime()` Returns next date when the timer is expected to fire
    `long` | `getPeriod()` Returns period that comes from definition - only for repeatable timers
    `long` | `getProcessInstanceId()` Returns process instance id that timer belongs to
    `int` | `getRepeatLimit()` Returns repeat limit that comes from definition - only for repeatable timers
    `long` | `getSessionId()` Returns session id that was used to create the timer
    `long` | `getTimerId()` Returns unique id of the timer
    `String` | `getTimerName()` Returns name of the timer - taken from timer node in the process
    `int` | `hashCode()`
    `void` | `setActivationTime(Date activationTime)`
    `void` | `setDelay(long delay)`
    `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()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TimerInstanceImpl

          public TimerInstanceImpl()

  - ### 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 interface `TimerInstance`

    - #### setTimerName

          public void setTimerName(String timerName)

    - #### getTimerId

          public long getTimerId()

      Description copied from interface: `TimerInstance`
      Returns unique id of the timer
      Specified by:
        `getTimerId` in interface `TimerInstance`

    - #### 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 interface `TimerInstance`

    - #### 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 interface `TimerInstance`

    - #### 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 interface `TimerInstance`

    - #### 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 interface `TimerInstance`

    - #### 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 interface `TimerInstance`

    - #### 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 interface `TimerInstance`

    - #### 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 interface `TimerInstance`

    - #### 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 interface `TimerInstance`

    - #### setSessionId

          public void setSessionId(long sessionId)

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.