public class ActorSystemImpl<T> extends ActorRef<T> implements ActorSystem<T>, ActorRefImpl<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
ActorSystemImpl.CreateSystemActor<T> |
static class |
ActorSystemImpl.CreateSystemActor$ |
static interface |
ActorSystemImpl.SystemCommand |
| Constructor and Description |
|---|
ActorSystemImpl(java.lang.String name,
com.typesafe.config.Config _config,
java.lang.ClassLoader _cl,
scala.Option<scala.concurrent.ExecutionContext> _ec,
Behavior<T> _userGuardianBehavior,
DeploymentConfig _userGuardianDeployment) |
| Modifier and Type | Method and Description |
|---|---|
static void |
$bang(T msg) |
static int |
compareTo(ActorRef<scala.runtime.Nothing$> other) |
protected Scheduler |
createScheduler()
Create the scheduler service.
|
<U> ActorRefImpl<U> |
deadLetters()
The deadLetter address is a destination that will accept (and discard)
every message sent to it.
|
Dispatchers |
dispatchers()
Facilities for lookup up thread-pools from configuration.
|
DynamicAccess |
dynamicAccess()
ClassLoader wrapper which is used for reflective accesses internally.
|
static boolean |
equals(java.lang.Object that) |
EventStreamImpl |
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. |
static int |
hashCode() |
boolean |
isLocal() |
LoggingAdapter |
log()
A
LoggingAdapter that can be used to emit log messages
without specifying a more detailed source. |
void |
logConfiguration()
Log the configuration.
|
LoggingFilter |
logFilter()
A reference to this system’s logFilter, which filters usage of the
ActorSystem.log()
LoggingAdapter such that only permissible messages are sent
via the ActorSystem.eventStream(). |
int |
loggerId() |
java.lang.String |
name()
The name of this actor system, used to distinguish multiple ones within
the same JVM & class loader.
|
static ActorPath |
path() |
java.lang.String |
printTree()
Create a string representation of the actor hierarchy within this system.
|
Scheduler |
scheduler()
A generic scheduler that can initiate the execution of tasks after some delay.
|
void |
sendSystem(SystemMessage msg) |
Settings |
settings()
The core settings extracted from the supplied configuration.
|
long |
startTime()
Start-up time in milliseconds since the epoch.
|
<U> scala.concurrent.Future<ActorRef<U>> |
systemActorOf(Behavior<U> behavior,
java.lang.String name,
DeploymentConfig deployment,
Timeout timeout)
Ask the system guardian of this system to create an actor from the given
behavior and deployment and with the given name.
|
static <U> DeploymentConfig |
systemActorOf$default$3() |
static Behavior<ActorSystemImpl.SystemCommand> |
systemGuardianBehavior() |
void |
tell(T msg)
Send a message to the Actor referenced by this ActorRef using *at-most-once*
messaging semantics.
|
scala.concurrent.Future<Terminated> |
terminate()
Terminates this actor system.
|
MonitorableThreadFactory |
threadFactory()
A ThreadFactory that can be used if the transport needs to create any Threads
|
static java.lang.String |
toString() |
protected java.lang.Thread.UncaughtExceptionHandler |
uncaughtExceptionHandler() |
static <U> ActorRef<U> |
upcast() |
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 ActorSystemImpl(java.lang.String name,
com.typesafe.config.Config _config,
java.lang.ClassLoader _cl,
scala.Option<scala.concurrent.ExecutionContext> _ec,
Behavior<T> _userGuardianBehavior,
DeploymentConfig _userGuardianDeployment)
public static Behavior<ActorSystemImpl.SystemCommand> systemGuardianBehavior()
public static void $bang(T msg)
public static <U> ActorRef<U> upcast()
public static final ActorPath path()
public static final int compareTo(ActorRef<scala.runtime.Nothing$> other)
public static final int hashCode()
public static final boolean equals(java.lang.Object that)
public static final java.lang.String toString()
public static <U> DeploymentConfig systemActorOf$default$3()
public java.lang.String name()
ActorSystemname in interface ActorSystem<T>public Settings settings()
ActorSystemsettings in interface ActorSystem<T>public void logConfiguration()
ActorSystemlogConfiguration in interface ActorSystem<T>protected java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler()
public MonitorableThreadFactory threadFactory()
ActorSystemthreadFactory in interface ActorSystem<T>public DynamicAccess dynamicAccess()
ActorSystemdynamicAccess in interface ActorSystem<T>public int loggerId()
public EventStreamImpl eventStream()
ActorSystemeventStream in interface ActorSystem<T>public LoggingFilter logFilter()
ActorSystemActorSystem.log()
LoggingAdapter such that only permissible messages are sent
via the ActorSystem.eventStream(). The default implementation will just test that
the message is suitable for the current log level.logFilter in interface ActorSystem<T>public LoggingAdapter log()
ActorSystemLoggingAdapter 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.log in interface ActorSystem<T>protected Scheduler createScheduler()
Furthermore, this timer service MUST throw IllegalStateException if it cannot schedule a task. Once scheduled, the task MUST be executed. If executed upon close(), the task may execute before its timeout.
public Scheduler scheduler()
ActorSystemscheduler in interface ActorSystem<T>public Dispatchers dispatchers()
ActorSystemdispatchers in interface ActorSystem<T>public scala.concurrent.ExecutionContextExecutor executionContext()
ActorSystemakka.actor.default-dispatcher.executionContext in interface ActorSystem<T>public long startTime()
ActorSystemstartTime in interface ActorSystem<T>public long uptime()
ActorSystemuptime in interface ActorSystem<T>public scala.concurrent.Future<Terminated> terminate()
ActorSystemterminate in interface ActorSystem<T>public scala.concurrent.Future<Terminated> whenTerminated()
ActorSystemwhenTerminated in interface ActorSystem<T>public <U> ActorRefImpl<U> deadLetters()
ActorSystemdeadLetters in interface ActorSystem<T>public void tell(T msg)
ActorRefpublic void sendSystem(SystemMessage msg)
sendSystem in interface ActorRefImpl<T>public boolean isLocal()
isLocal in interface ActorRefImpl<T>public <U> scala.concurrent.Future<ActorRef<U>> systemActorOf(Behavior<U> behavior, java.lang.String name, DeploymentConfig deployment, Timeout timeout)
ActorSystemAskPattern$
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.
systemActorOf in interface ActorSystem<T>behavior - (undocumented)name - (undocumented)deployment - (undocumented)timeout - (undocumented)public java.lang.String printTree()
ActorSystemThe format of the string is subject to change, i.e. no stable “API”.
printTree in interface ActorSystem<T>