trait ActorSystem[-T] extends ActorRef[T]

An ActorSystem is home to a hierarchy of Actors. It is created using ActorSystem$ apply from a Props object that describes the root Actor of this hierarchy and which will create all other Actors beneath it. A system also implements the ActorRef type, and sending a message to the system directs that message to the root Actor.

Self Type
ActorSystem[T] with ActorRefImpl[T]
Source
ActorSystem.scala
Linear Supertypes
ActorRef[T], Comparable[ActorRef[Nothing]], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActorSystem
  2. ActorRef
  3. Comparable
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def deadLetters[U]: ActorRef[U]

    The deadLetter address is a destination that will accept (and discard) every message sent to it.

  2. abstract def dispatchers: Dispatchers

    Facilities for lookup up thread-pools from configuration.

  3. abstract def dynamicAccess: DynamicAccess

    ClassLoader wrapper which is used for reflective accesses internally.

    ClassLoader wrapper which is used for reflective accesses internally. This is set to use the context class loader, if one is set, or the class loader which loaded the ActorSystem implementation. The context class loader is also set on all threads created by the ActorSystem, if one was set during creation.

  4. abstract def eventStream: EventStream

    Main event bus of this actor system, used for example for logging.

  5. implicit abstract def executionContext: ExecutionContextExecutor

    The default thread pool of this ActorSystem, configured with settings in akka.actor.default-dispatcher.

  6. abstract def log: LoggingAdapter

    A akka.event.LoggingAdapter that can be used to emit log messages without specifying a more detailed source.

    A akka.event.LoggingAdapter that can be used to emit log messages without specifying a more detailed source. Typically it is desirable to construct a dedicated LoggingAdapter within each Actor from that Actor’s ActorRef in order to identify the log messages.

  7. abstract def logConfiguration(): Unit

    Log the configuration.

  8. abstract def logFilter: LoggingFilter

    A reference to this system’s logFilter, which filters usage of the #log akka.event.LoggingAdapter such that only permissible messages are sent via the #eventStream.

    A reference to this system’s logFilter, which filters usage of the #log akka.event.LoggingAdapter such that only permissible messages are sent via the #eventStream. The default implementation will just test that the message is suitable for the current log level.

  9. abstract def name: String

    The name of this actor system, used to distinguish multiple ones within the same JVM & class loader.

  10. abstract def printTree: String

    Create a string representation of the actor hierarchy within this system.

    Create a string representation of the actor hierarchy within this system.

    The format of the string is subject to change, i.e. no stable “API”.

  11. abstract def scheduler: Scheduler

    A generic scheduler that can initiate the execution of tasks after some delay.

    A generic scheduler that can initiate the execution of tasks after some delay. It is recommended to use the ActorContext’s scheduling capabilities for sending messages to actors instead of registering a Runnable for execution using this facility.

  12. abstract def settings: Settings

    The core settings extracted from the supplied configuration.

  13. abstract def startTime: Long

    Start-up time in milliseconds since the epoch.

  14. abstract def systemActorOf[U](behavior: Behavior[U], name: String, deployment: DeploymentConfig = EmptyDeploymentConfig)(implicit timeout: Timeout): Future[ActorRef[U]]

    Ask the system guardian of this system to create an actor from the given behavior and deployment and with the given name.

    Ask the system guardian of this system to create an actor from the given behavior and deployment and with the given name. The name does not need to be unique since the guardian will prefix it with a running number when creating the child actor. The timeout sets the timeout used for the AskPattern$ invocation when asking the guardian.

    The returned Future of ActorRef may be converted into an ActorRef to which messages can immediately be sent by using the ActorRef$apply method.

  15. abstract def tell(msg: T): Unit

    Send a message to the Actor referenced by this ActorRef using *at-most-once* messaging semantics.

    Send a message to the Actor referenced by this ActorRef using *at-most-once* messaging semantics.

    Definition Classes
    ActorRef
  16. abstract def terminate(): Future[Terminated]

    Terminates this actor system.

    Terminates this actor system. This will stop the guardian actor, which in turn will recursively stop all its child actors, then the system guardian (below which the logging actors reside).

  17. abstract def threadFactory: ThreadFactory

    A ThreadFactory that can be used if the transport needs to create any Threads

  18. abstract def uptime: Long

    Up-time of this actor system in seconds.

  19. abstract def whenTerminated: Future[Terminated]

    Returns a Future which will be completed after the ActorSystem has been terminated and termination hooks have been executed.

Concrete Value Members

  1. def !(msg: T): Unit

    Send a message to the Actor referenced by this ActorRef using *at-most-once* messaging semantics.

    Send a message to the Actor referenced by this ActorRef using *at-most-once* messaging semantics.

    Definition Classes
    ActorRef
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ActorSystem[T] to any2stringadd[ActorSystem[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (ActorSystem[T], B)
    Implicit
    This member is added by an implicit conversion from ActorSystem[T] to ArrowAssoc[ActorSystem[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def compareTo(other: ActorRef[Nothing]): Int

    Comparison takes path and the unique id of the actor cell into account.

    Comparison takes path and the unique id of the actor cell into account.

    Definition Classes
    ActorRef → Comparable
  10. def ensuring(cond: (ActorSystem[T]) ⇒ Boolean, msg: ⇒ Any): ActorSystem[T]
    Implicit
    This member is added by an implicit conversion from ActorSystem[T] to Ensuring[ActorSystem[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ActorSystem[T]) ⇒ Boolean): ActorSystem[T]
    Implicit
    This member is added by an implicit conversion from ActorSystem[T] to Ensuring[ActorSystem[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): ActorSystem[T]
    Implicit
    This member is added by an implicit conversion from ActorSystem[T] to Ensuring[ActorSystem[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ActorSystem[T]
    Implicit
    This member is added by an implicit conversion from ActorSystem[T] to Ensuring[ActorSystem[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def equals(that: Any): Boolean

    Equals takes path and the unique id of the actor cell into account.

    Equals takes path and the unique id of the actor cell into account.

    Definition Classes
    ActorRef → AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ActorSystem[T] to StringFormat[ActorSystem[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  19. final def hashCode(): Int
    Definition Classes
    ActorRef → AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. final val path: ActorPath

    The hierarchical path name of the referenced Actor.

    The hierarchical path name of the referenced Actor. The lifecycle of the ActorRef is fully contained within the lifecycle of the akka.actor.ActorPath and more than one Actor instance can exist with the same path at different points in time, but not concurrently.

    Definition Classes
    ActorRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. final def toString(): String
    Definition Classes
    ActorRef → AnyRef → Any
  27. def upcast[U >: T]: ActorRef[U]

    Unsafe utility method for widening the type accepted by this ActorRef; provided to avoid having to use asInstanceOf on the full reference type, which would unfortunately also work on non-ActorRefs.

    Unsafe utility method for widening the type accepted by this ActorRef; provided to avoid having to use asInstanceOf on the full reference type, which would unfortunately also work on non-ActorRefs.

    Definition Classes
    ActorRef
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def [B](y: B): (ActorSystem[T], B)
    Implicit
    This member is added by an implicit conversion from ActorSystem[T] to ArrowAssoc[ActorSystem[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ActorRef[T]

Inherited from Comparable[ActorRef[Nothing]]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ActorSystem[T] to any2stringadd[ActorSystem[T]]

Inherited by implicit conversion StringFormat from ActorSystem[T] to StringFormat[ActorSystem[T]]

Inherited by implicit conversion Ensuring from ActorSystem[T] to Ensuring[ActorSystem[T]]

Inherited by implicit conversion ArrowAssoc from ActorSystem[T] to ArrowAssoc[ActorSystem[T]]

Ungrouped