public abstract class ActorSystem<T> extends ActorRef<T>
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.Constructor and Description |
---|
ActorSystem(java.lang.String _name) |
Modifier and Type | Method and Description |
---|---|
static ActorSystem<scala.runtime.Nothing$> |
apply(akka.actor.ActorSystem untyped) |
static <T> ActorSystem<T> |
apply(java.lang.String name,
Props<T> guardianProps,
scala.Option<com.typesafe.config.Config> config,
scala.Option<java.lang.ClassLoader> classLoader,
scala.Option<scala.concurrent.ExecutionContext> executionContext) |
<U> ActorRef<U> |
deadLetters()
The deadLetter address is a destination that will accept (and discard)
every message sent to it.
|
akka.dispatch.Dispatchers |
dispatchers()
Helper object for looking up configured dispatchers.
|
akka.actor.DynamicAccess |
dynamicAccess()
ClassLoader wrapper which is used for reflective accesses internally.
|
akka.event.EventStream |
eventStream()
Main event bus of this actor system, used for example for logging.
|
scala.concurrent.ExecutionContextExecutor |
executionContext()
The default thread pool of this ActorSystem, configured with settings in
akka.actor.default-dispatcher . |
void |
logConfiguration()
Log the configuration.
|
java.lang.String |
name()
The name of this actor system, used to distinguish multiple ones within
the same JVM & class loader.
|
akka.actor.ActorRefProvider |
provider()
The ActorRefProvider is the only entity which creates all actor references within this actor system.
|
akka.actor.ActorSystem.Settings |
settings()
The core settings extracted from the supplied configuration.
|
long |
startTime()
Start-up time in milliseconds since the epoch.
|
scala.concurrent.Future<Terminated> |
terminate()
Terminates this actor system.
|
java.util.concurrent.ThreadFactory |
threadFactory()
A ThreadFactory that can be used if the transport needs to create any Threads
|
abstract akka.actor.ExtendedActorSystem |
untyped()
INTERNAL API.
|
akka.actor.ActorRef |
untypedRef()
The user guardian’s untyped
ActorRef . |
long |
uptime()
Up-time of this actor system in seconds.
|
scala.concurrent.Future<Terminated> |
whenTerminated()
Returns a Future which will be completed after the ActorSystem has been terminated
and termination hooks have been executed.
|
public static <T> ActorSystem<T> apply(java.lang.String name, Props<T> guardianProps, scala.Option<com.typesafe.config.Config> config, scala.Option<java.lang.ClassLoader> classLoader, scala.Option<scala.concurrent.ExecutionContext> executionContext)
public static ActorSystem<scala.runtime.Nothing$> apply(akka.actor.ActorSystem untyped)
public abstract akka.actor.ExtendedActorSystem untyped()
Access to the underlying (untyped) ActorSystem.
public java.lang.String name()
public akka.actor.ActorSystem.Settings settings()
public void logConfiguration()
public long startTime()
public long uptime()
public akka.dispatch.Dispatchers dispatchers()
public java.util.concurrent.ThreadFactory threadFactory()
public akka.actor.DynamicAccess dynamicAccess()
public akka.actor.ActorRefProvider provider()
public akka.actor.ActorRef untypedRef()
ActorRef
.untypedRef
in class ActorRef<T>
public akka.event.EventStream eventStream()
public scala.concurrent.ExecutionContextExecutor executionContext()
akka.actor.default-dispatcher
.public scala.concurrent.Future<Terminated> terminate()
public scala.concurrent.Future<Terminated> whenTerminated()
public <U> ActorRef<U> deadLetters()