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.

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 any2stringadd
  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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Implicit information
    This member is added by an implicit conversion from ActorGC to any2stringadd[ActorGC] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. 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()
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. var activeActors: Int

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

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. 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
  10. 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
  11. 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
  12. 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
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

    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()
  17. def gc(): Unit

    Checks for actors that have become garbage.

    Checks for actors that have become garbage.

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

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

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

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

    Definition Classes
    AnyRef
  22. 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
  23. final def notify(): Unit

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

    Definition Classes
    AnyRef
  25. 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
  26. def status(): Unit

    Prints some status information on currently managed actors.

    Prints some status information on currently managed actors.

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

    Definition Classes
    AnyRef
  28. 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
  29. val terminationHandlers: HashMap[TrackedReactor, () ⇒ Unit]

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. 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 any2stringadd from ActorGC to any2stringadd[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