scala.actors

trait SchedulerAdapter

[source: scala/actors/SchedulerAdapter.scala]

trait SchedulerAdapter
extends IScheduler
The SchedulerAdapter trait is used to adapt the behavior of the standard Scheduler object. Providing an implementation for the execute(f: => Unit) method is sufficient to obtain a concrete IScheduler implementation.
Author
Philipp Haller
Method Summary
def execute (task : java.lang.Runnable) : Unit
Submits a Runnable for execution.
def isActive : Boolean
When the scheduler is active, it can execute tasks.
def managedBlock (blocker : ManagedBlocker) : Unit
def newActor (a : Reactor) : Unit
Registers a newly created actor with this scheduler.
def onTerminate (a : Reactor)(f : => Unit) : Unit
Registers a closure to be executed when the specified actor terminates.
def shutdown : Unit
Shuts down the scheduler.
def terminated (a : Reactor) : Unit
Unregisters an actor from this scheduler, because it has terminated.
Methods inherited from IScheduler
execute (abstract), executeFromActor, tick, onLockup, onLockup, printActorDump
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def execute(task : java.lang.Runnable) : Unit
Submits a Runnable for execution.
Parameters
task - the task to be executed
Overrides
IScheduler.execute

def shutdown : Unit
Shuts down the scheduler.
Overrides
IScheduler.shutdown

def isActive : Boolean
When the scheduler is active, it can execute tasks.
Overrides
IScheduler.isActive

def newActor(a : Reactor) : Unit
Registers a newly created actor with this scheduler.
Parameters
a - the actor to be registered
Overrides
IScheduler.newActor

def terminated(a : Reactor) : Unit
Unregisters an actor from this scheduler, because it has terminated.
Parameters
a - the actor to be unregistered
Overrides
IScheduler.terminated

def onTerminate(a : Reactor)(f : => Unit) : Unit
Registers a closure to be executed when the specified actor terminates.
Parameters
a - the actor
f - the closure to be registered
Overrides
IScheduler.onTerminate

def managedBlock(blocker : ManagedBlocker) : Unit
Overrides
IScheduler.managedBlock