ActorGC keeps track of the number of live actors being managed by a a scheduler so that it can shutdown when all of the actors it manages have either been explicitly terminated or garbage collected.
The ExecutorScheduler
class uses an
ExecutorService
to execute Actor
s.
The ExecutorScheduler
class uses an
ExecutorService
to execute Actor
s.
(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.
The ForkJoinScheduler
is backed by a lightweight
fork-join task execution framework.
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.
This scheduler class uses a ThreadPoolExecutor
to execute Actor
s.
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.
(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.
This scheduler executes actor tasks on the current thread.
This scheduler executes actor tasks on the current thread.
(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.
Default scheduler for actors with daemon semantics, such as those backing futures.
Default scheduler for actors with daemon semantics, such as those backing futures.
(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.
The ExecutorScheduler
object is used to create
ExecutorScheduler
instances.
The ExecutorScheduler
object is used to create
ExecutorScheduler
instances.
(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.
ActorGC keeps track of the number of live actors being managed by a a scheduler so that it can shutdown when all of the actors it manages have either been explicitly terminated or garbage collected.
When an actor is started, it is registered with the ActorGC via the
newActor
method, and when an actor is knowingly terminated (e.g. act method finishes, exit explicitly called, an exception is thrown), the ActorGC is informed via theterminated
method.(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.