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
When the scheduler is active, it can execute tasks.
When the scheduler is active, it can execute tasks.
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
Creates a String representation of this object.
Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.
a String representation of the object.
Deprecated non-actor-private version
Deprecated non-actor-private version
(Since version 2.7.7) this method is going to be removed in a future release
(Since version ) see corresponding Javadoc for more information.
(Since version ) see corresponding Javadoc for more information.
(Since version 2.7.7) this member is going to be removed in a future release
(Since version 2.7.7) this member is going to be removed in a future release
(Since version 2.7.7) this member is going to be removed in a future release
(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 2.7.7) this member is going to be removed in a future release
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.