Scala Library
|
|
scala/actors/ActorGC.scala
]
trait
ActorGC
extends
ISchedulernewActor
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.Method Summary | |
protected def
|
allTerminated : Boolean |
protected def
|
gc
: Unit
Removes unreachable actors from refSet.
|
def
|
newActor
(a : Reactor) : Unit
newActor is invoked whenever a new actor is started.
|
def
|
onTerminate
(a : Reactor)(f : => Unit) : Unit
Registers a closure to be executed when the specified
actor terminates.
|
protected def
|
status : Unit |
def
|
terminated
(a : Reactor) : Unit
Unregisters an actor from this scheduler, because it
has terminated.
|
Methods inherited from IScheduler | |
execute (abstract), execute (abstract), shutdown (abstract), isActive (abstract), managedBlock (abstract), executeFromActor |
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
def
gc : Unit
protected
def
status : Unit
protected
def
allTerminated : Boolean
a -
the actorf -
the closure to be registereda -
the actor to be registered
Scala Library
|
|