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.
Deprecated non-actor-private version
Deprecated non-actor-private version
this method is going to be removed in a future release
see corresponding Javadoc for more information.
see corresponding Javadoc for more information.
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.
this member is going to be removed in a future release
this member is going to be removed in a future release
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
this member is going to be removed in a future release
Resumes the execution of the scheduler if it was previously
suspended using snapshot
.
Resumes the execution of the scheduler if it was previously
suspended using snapshot
.
see corresponding Javadoc for more information.
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.
see corresponding Javadoc for more information.
see corresponding Javadoc for more information.
see corresponding Javadoc for more information.
Registers that the specified actor has terminated.
Registers that the specified actor has terminated.
the actor that has terminated
this member is going to be removed in a future release
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
a string representation of the object.
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.