|
Scala Library
|
|
scala/actors/SchedulerAdapter.scala]
trait
SchedulerAdapter
extends ISchedulerSchedulerAdapter 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.| 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
Runnable for execution.task - the task to be executed
def
shutdown : Unit
def
isActive : Boolean
a - the actor to be registereda - the actor to be unregistereda - the actorf - the closure to be registered
def
managedBlock(blocker : ManagedBlocker) : Unit
|
Scala Library
|
|