scala.actors

trait IScheduler

[source: scala/actors/IScheduler.scala]

trait IScheduler
extends AnyRef
The IScheduler 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.
Version
0.9.18
Author
Philipp Haller
Direct Known Subclasses:
FJTaskScheduler2, Scheduler, WorkerThreadScheduler, SingleThreadedScheduler, SchedulerAdapter

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
val QUIT_TASK : Reaction

Method Details
abstract def execute(fun : => Unit) : Unit
Submits a closure for execution.
Parameters
fun - the closure to be executed

abstract def execute(task : java.lang.Runnable) : Unit
Submits a Runnable for execution.
Parameters
task - the task to be executed

abstract def tick(a : Actor) : Unit
Notifies the scheduler about activity of the executing actor.
Parameters
a - the active actor

abstract def shutdown : Unit
Shuts down the scheduler.

abstract def onLockup(handler : () => Unit) : Unit

abstract def onLockup(millis : Int)(handler : () => Unit) : Unit

abstract def printActorDump : Unit