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 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.
Registers that the specified actor has terminated.
Registers that the specified actor has terminated.
the actor that has terminated
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
This scheduler class uses a
ThreadPoolExecutor
to executeActor
s.The scheduler attempts to shut down itself and the underlying
ThreadPoolExecutor
only ifterminate
is set to true. Otherwise, the scheduler must be shut down explicitly.(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.