The class curam.util.transaction.TimerInfo contains methods for starting and stopping timers. This class also contains a number of internal methods and methods reserved for future use. The following table describes the API's that are currently supported by the infrastructure:
Method Name | Description |
---|---|
startTask(long, TimerTask) | Create a single-action timer that expires after a specified duration. |
startTask(long, long, TimerTask) | Create an interval timer whose first expiration occurs after a specified duration, and whose subsequent expirations occur after a specified interval. |
startTask(DateTime, TimerTask) | Create a single-action timer that expires at a given point in time. |
startTask(DateTime, long, TimerTask) | Create an interval timer whose first expiration occurs at a given point in time and whose subsequent expirations occur after a specified interval. |
cancel() | Cancels the timer which invoked the current method. Should only be called by methods which were invoked by a timer, calling this method from a non-timed method will have no effect. |
getID() | Gets the identifier for the timer which is running the current thread. |
isTimerTransaction() | Indicates whether the current transaction is being run by a timer. |