Submits a closure for execution.
Submits a closure for execution.
the closure to be executed
Submits a Runnable
for execution.
Submits a Runnable
for execution.
the task to be executed
Checks for actors that have become garbage.
Checks for actors that have become garbage.
When the scheduler is active, it can execute tasks.
When the scheduler is active, it can execute tasks.
true
, if the scheduler is active, otherwise false.
newActor is invoked whenever a new actor is started.
newActor is invoked whenever a new actor is started.
Registers a closure to be executed when the specified actor terminates.
Registers a closure to be executed when the specified actor terminates.
the actor
the closure to be registered
Resumes the execution of the scheduler if it was previously
suspended using ForkJoinScheduler.snapshot
.
Resumes the execution of the scheduler if it was previously
suspended using ForkJoinScheduler.snapshot
.
Shuts down the scheduler.
Shuts down the scheduler.
Suspends the scheduler.
Suspends the scheduler. All threads that were in use by the scheduler and its internal thread pool are terminated.
Starts this scheduler.
Registers that the specified actor has terminated.
Registers that the specified actor has terminated.
the actor that has terminated
The
ForkJoinScheduler
is backed by a lightweight fork-join task execution framework.(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.