TimerImpl
Default implementation of Timer
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete 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
- Definition Classes
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
- Definition Classes
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
- Definition Classes
Update an existed TimeoutTrigger.
Update an existed TimeoutTrigger.
Value parameters
- registerId
-
the old register id.
- trigger
-
The new TimeoutTrigger for update.
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- Timer