Scala 2.8.0.Beta1-RC2 API

This document is the API specification for Scala Library

Class Summary
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.
class ResizableThreadPoolScheduler (protected val terminate : Boolean, protected val daemon : Boolean) extends java.lang.Thread with IScheduler with TerminationMonitor
This scheduler class uses a ThreadPoolExecutor to execute Actors. The scheduler attempts to shut down itself and the underlying ThreadPoolExecutor only if terminate is set to true. Otherwise, the scheduler must be shut down explicitly.
abstract class SchedulerService (daemon : Boolean) extends java.lang.Thread with IScheduler with ActorGC
The abstract SchedulerService class allows subclasses to implement a custom onShutdown method, which is invoked when the runtime system has detected that all actors have been terminated.
class SimpleExecutorScheduler (protected val executor : java.util.concurrent.ExecutorService, protected val terminate : Boolean) extends TerminationService with scala.actors.scheduler.ExecutorScheduler
The SimpleExecutorScheduler class uses an ExecutorService to execute Actors. It does not start an additional thread. A SimpleExecutorScheduler attempts to shut down the underlying ExecutorService only if terminate is set to true. Otherwise, the ExecutorService must be shut down either directly or by shutting down the SimpleExecutorScheduler instance.
class SingleThreadedScheduler extends IScheduler
This scheduler executes actor tasks on the current thread.
trait TerminationMonitor extends AnyRef
abstract class TerminationService (terminate : Boolean) extends java.lang.Thread with IScheduler with TerminationMonitor
The TerminationService class starts a new thread that is used to check regularly if the scheduler can be shut down, because all started actors are known to have terminated.
class ThreadPoolScheduler (protected val executor : java.util.concurrent.ThreadPoolExecutor, protected val terminate : Boolean, protected val daemon : Boolean) extends java.lang.Thread with scala.actors.scheduler.ExecutorScheduler with TerminationMonitor
The ThreadPoolScheduler class uses a ThreadPoolExecutor to execute Actors. A ThreadPoolScheduler attempts to shut down the underlying ThreadPoolExecutor only if terminate is set to true. Otherwise, the ThreadPoolExecutor must be shut down either directly or by shutting down the ThreadPoolScheduler instance.
Object Summary
object DaemonScheduler extends scala.actors.scheduler.DelegatingScheduler
Default scheduler for actors with daemon semantics, such as those backing futures.
object ThreadPoolConfig extends AnyRef