scala.actors.scheduler

ActorGC

trait ActorGC extends TerminationMonitor

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 the terminated method.

Self Type
ActorGC with IScheduler
Annotations
@deprecated
Deprecated

(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

Source
ActorGC.scala
Linear Supertypes
TerminationMonitor, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ActorGC
  2. TerminationMonitor
  3. AnyRef
  4. Any
Implicitly
  1. by StringAdd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from ActorGC to StringAdd[ActorGC] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (ActorGC, B)

    Implicit information
    This member is added by an implicit conversion from ActorGC to ArrowAssoc[ActorGC] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. var activeActors: Int

    Attributes
    protected
    Definition Classes
    TerminationMonitor
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def ensuring(cond: (ActorGC) ⇒ Boolean, msg: ⇒ Any): ActorGC

    Implicit information
    This member is added by an implicit conversion from ActorGC to Ensuring[ActorGC] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (ActorGC) ⇒ Boolean): ActorGC

    Implicit information
    This member is added by an implicit conversion from ActorGC to Ensuring[ActorGC] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): ActorGC

    Implicit information
    This member is added by an implicit conversion from ActorGC to Ensuring[ActorGC] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): ActorGC

    Implicit information
    This member is added by an implicit conversion from ActorGC to Ensuring[ActorGC] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

    Implicit information
    This member is added by an implicit conversion from ActorGC to StringFormat[ActorGC] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. def gc(): Unit

    Checks for actors that have become garbage.

    Checks for actors that have become garbage.

    Attributes
    protected
    Definition Classes
    ActorGC → TerminationMonitor
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def newActor(a: TrackedReactor): Unit

    newActor is invoked whenever a new actor is started.

    newActor is invoked whenever a new actor is started.

    Definition Classes
    ActorGC → TerminationMonitor
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def onTerminate(a: TrackedReactor)(f: ⇒ Unit): Unit

    Registers a closure to be executed when the specified actor terminates.

    Registers a closure to be executed when the specified actor terminates.

    a

    the actor

    f

    the closure to be registered

    Definition Classes
    ActorGC → TerminationMonitor
  28. def status(): Unit

    Prints some status information on currently managed actors.

    Prints some status information on currently managed actors.

    Attributes
    protected
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def terminated(a: TrackedReactor): Unit

    Registers that the specified actor has terminated.

    Registers that the specified actor has terminated.

    a

    the actor that has terminated

    Definition Classes
    ActorGC → TerminationMonitor
  31. val terminationHandlers: HashMap[TrackedReactor, () ⇒ Unit]

    Attributes
    protected
    Definition Classes
    TerminationMonitor
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def [B](y: B): (ActorGC, B)

    Implicit information
    This member is added by an implicit conversion from ActorGC to ArrowAssoc[ActorGC] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from TerminationMonitor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringAdd from ActorGC to StringAdd[ActorGC]

Inherited by implicit conversion StringFormat from ActorGC to StringFormat[ActorGC]

Inherited by implicit conversion Ensuring from ActorGC to Ensuring[ActorGC]

Inherited by implicit conversion ArrowAssoc from ActorGC to ArrowAssoc[ActorGC]

Ungrouped