Scala Library
|
|
scala/actors/ActorGC.scala
]
trait
ActorGC
extends
TerminationMonitornewActor
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 the terminated
method.Values and Variables inherited from TerminationMonitor | |
activeActors, terminationHandlers |
Method Summary | |
override def
|
allTerminated
: Boolean
Checks whether all actors have terminated.
|
protected override def
|
gc
: Unit
Checks for actors that have become garbage.
|
override def
|
newActor
(a : Reactor) : Unit
newActor is invoked whenever a new actor is started.
|
override def
|
onTerminate
(a : Reactor)(f : => Unit) : Unit
Registers a closure to be executed when the specified
actor terminates.
|
protected def
|
status
: Unit
Prints some status information on currently managed actors.
|
override def
|
terminated
(a : Reactor) : Unit
Registers that the specified actor has terminated.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
protected override
def
gc : Unit
protected
def
status : Unit
override
def
allTerminated : Boolean
a -
the actorf -
the closure to be registereda -
the actor that has terminated
Scala Library
|
|