|
Scala Library
|
|
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 TerminationMonitorThreadPoolScheduler 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.| Additional Constructor Summary | |
def
|
this (d : Boolean) : ThreadPoolScheduler |
| Value Summary | |
protected val
|
CHECK_FREQ : Int |
| Values and Variables inherited from TerminationMonitor | |
| activeActors, terminationHandlers |
| Method Summary | |
override def
|
run : Unit |
def
|
shutdown
: Unit
Shuts down the scheduler.
|
| Methods inherited from TerminationMonitor | |
| newActor, onTerminate, terminated, allTerminated, gc |
| Methods inherited from ThreadPoolRunner | |
| functionAsTask, futureAsFunction, submit, execute, managedBlock |
| Methods inherited from TaskRunner | |
| tryCatch |
| Methods inherited from IScheduler | |
| executeFromActor, tick, onLockup, onLockup, printActorDump |
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Additional Constructor Details |
| Value Details |
| Method Details |
override
def
run : Unit
def
shutdown : Unit
|
Scala Library
|
|