Scala Library
|
|
class
ForkJoinScheduler(val
initCoreSize : Int, val
maxSize : Int, daemon : Boolean)
extends
java.lang.Runnable with
IScheduler with
TerminationMonitorForkJoinScheduler
is backed by a lightweight
fork-join task execution framework.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 |
Value Details |
Method Details |
def
start : Unit
override
def
run : Unit
def
execute(task : java.lang.Runnable) : Unit
Runnable
for execution.task -
the task to be executedoverride
def
executeFromActor(task : java.lang.Runnable) : Unit
fun -
the closure to be executed
def
shutdown : Unit
def
isActive : Boolean
override
def
managedBlock(blocker : ManagedBlocker) : Unit
def
snapshot : Unit
def
restart : Unit
ForkJoinScheduler.snapshot
.
Scala Library
|
|