scala.actors.scheduler

class ForkJoinScheduler

[source: scala/actors/scheduler/ForkJoinScheduler.scala]

class ForkJoinScheduler(val initCoreSize : Int, val maxSize : Int, daemon : Boolean)
extends java.lang.Runnable with IScheduler with TerminationMonitor
The ForkJoinScheduler is backed by a lightweight fork-join task execution framework.
Author
Philipp Haller
Additional Constructor Summary
def this : ForkJoinScheduler
def this (d : Boolean) : ForkJoinScheduler
Value Summary
protected val CHECK_FREQ : Int
Values and Variables inherited from TerminationMonitor
activeActors, terminationHandlers
Method Summary
def execute (task : java.lang.Runnable) : Unit
Submits a Runnable for execution.
def execute (fun : => Unit) : Unit
Submits a closure for execution.
override def executeFromActor (task : java.lang.Runnable) : Unit
def isActive : Boolean
When the scheduler is active, it can execute tasks.
override def managedBlock (blocker : ManagedBlocker) : Unit
def restart : Unit
Resumes the execution of the scheduler if it was previously suspended using ForkJoinScheduler.snapshot.
override def run : Unit
def shutdown : Unit
Shuts down the scheduler.
def snapshot : Unit
Suspends the scheduler. All threads that were in use by the scheduler and its internal thread pool are terminated.
def start : Unit
Starts this scheduler.
Methods inherited from TerminationMonitor
newActor, onTerminate, terminated, allTerminated, gc
Methods inherited from IScheduler
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
Additional Constructor Details
def this(d : Boolean) : ForkJoinScheduler

def this : ForkJoinScheduler

Value Details
protected val CHECK_FREQ : Int

Method Details
def start : Unit
Starts this scheduler.

override def run : Unit
Overrides
java.lang.Runnable.java.lang.Runnable.run

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

override def executeFromActor(task : java.lang.Runnable) : Unit
Overrides
IScheduler.executeFromActor

def execute(fun : => Unit) : Unit
Submits a closure for execution.
Parameters
fun - the closure 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

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

def snapshot : Unit
Suspends the scheduler. All threads that were in use by the scheduler and its internal thread pool are terminated.

def restart : Unit
Resumes the execution of the scheduler if it was previously suspended using ForkJoinScheduler.snapshot.