Timer can generate timeout event.
Attributes
Members list
Value members
Abstract methods
API for cc.otavia.core.actor.Actor to cancel timeout event
API for cc.otavia.core.actor.Actor to cancel timeout event
Value parameters
- registerId
-
Register id of ReactorTimerTask to cancel.
Attributes
API for Actor to register timeout event to Timer.
API for Actor to register timeout event to Timer.
Value parameters
- address
-
Address of this TimeoutTrigger belong to. The timeout event of the TimeoutTrigger is send to this address.
- attach
-
optional attachment object
- trigger
-
Timeout event trigger.
Attributes
- Returns
-
Register id of ReactorTimerTask, cc.otavia.core.actor.Actor can use this id to cancel this trigger by cancelTimerTask
API for Channel to register timeout event to Timer.
API for Channel to register timeout event to Timer.
Value parameters
- channel
-
Channel
- trigger
-
Timeout event trigger.
Attributes
- Returns
-
Register id of ReactorTimerTask, cc.otavia.core.actor.Actor can use this id to cancel this trigger by cancelTimerTask
Update an existed TimeoutTrigger.
Update an existed TimeoutTrigger.
Value parameters
- registerId
-
the old register id.
- trigger
-
The new TimeoutTrigger for update.