Table of Contents
OIL2 Class Standard.TimerEvent
class Standard . TimerEvent {
} inherits from Object;
DESCRIPTION
The TimerEvent implements a timer service. Clients are sent
a timerExpired message after a selected number of seconds have
passed.
METHODS
Standard.TimerEvent:create
TimerEvent:create(oid client, int32 timeout, optional any extraData)
Method Description
- the client argument is the object Id to which a
timerExpired notification should be sent.
- the timeout parameter specifies how many seconds must elapse
before the notification is sent.
- the extraData parameter is optional.
When the timer expires, the client is sent a timerExpired message
and passed two arguments: the object Id of the TimerEvent object
and the value of extraData. The TimerEvent object
automatically deletes itself when the timer expires.