Scala Library
|
|
scala/actors/IScheduler.scala
]
trait
IScheduler
extends
AnyRefIScheduler
trait provides a common interface
for all schedulers used to execute actor tasks.
Subclasses of Actor
that override its
scheduler
member value must provide
an implementation of the IScheduler
trait.Value Summary | |
val
|
QUIT_TASK : Reaction |
Method Summary | |
abstract def
|
execute
(task : java.lang.Runnable) : Unit
Submits a
Runnable for execution. |
abstract def
|
execute
(fun : => Unit) : Unit
Submits a closure for execution.
|
abstract def
|
onLockup (millis : Int)(handler : () => Unit) : Unit |
abstract def
|
onLockup (handler : () => Unit) : Unit |
abstract def
|
printActorDump : Unit |
abstract def
|
shutdown
: Unit
Shuts down the scheduler.
|
abstract def
|
tick
(a : Actor) : Unit
Notifies the scheduler about activity of the
executing actor.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
Method Details |
fun -
the closure to be executedabstract
def
execute(task : java.lang.Runnable) : Unit
Runnable
for execution.task -
the task to be executeda -
the active actorabstract
def
shutdown : Unit
abstract
def
onLockup(handler : () => Unit) : Unit
abstract
def
onLockup(millis : Int)(handler : () => Unit) : Unit
abstract
def
printActorDump : Unit
Scala Library
|
|