org.jbpm.services.api.admin

## Interface TimerInstance

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    TimerInstanceImpl

      public interface TimerInstance
      extends Serializable

  Describes timer instance that is active with details about the timer and the owner (such as process instance).

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

- - ### Method Detail

    - #### getTimerName

          String getTimerName()

      Returns name of the timer - taken from timer node in the process

    - #### getTimerId

          long getTimerId()

      Returns unique id of the timer

    - #### getActivationTime

          Date getActivationTime()

      Returns date when the timer was activated/created

    - #### getLastFireTime

          Date getLastFireTime()

      Returns date when the timer was fired last time, can be null

    - #### getNextFireTime

          Date getNextFireTime()

      Returns next date when the timer is expected to fire

    - #### getDelay

          long getDelay()

      Returns delay that comes from definition

    - #### getPeriod

          long getPeriod()

      Returns period that comes from definition - only for repeatable timers

    - #### getRepeatLimit

          int getRepeatLimit()

      Returns repeat limit that comes from definition - only for repeatable timers

    - #### getProcessInstanceId

          long getProcessInstanceId()

      Returns process instance id that timer belongs to

    - #### getSessionId

          long getSessionId()

      Returns session id that was used to create the timer

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