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 Actor s.
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 Actor s. 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 Actor s.
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
|