Construct a path below the application guardian to be used with ActorSystem#actorSelection.
Construct a path below the application guardian to be used with ActorSystem#actorSelection.
Construct a path below the application guardian to be used with ActorSystem#actorSelection.
Construct a path below the application guardian to be used with ActorSystem#actorSelection.
Create new actor as child of this context with the given name, which must not be null, empty or start with “$”.
Create new actor as child of this context with the given name, which must
not be null, empty or start with “$”. If the given name is already in use,
an InvalidActorNameException
is thrown.
See akka.actor.Props for details on how to obtain a Props
object.
UnsupportedOperationException
if invoked on an ActorSystem that
uses a custom user guardian
akka.ConfigurationException
if deployment, dispatcher
or mailbox configuration is wrong
akka.actor.InvalidActorNameException
if the given name is
invalid or already in use
Create new actor as child of this context and give it an automatically generated name (currently similar to base64-encoded integer count, reversed and with “$” prepended, may change in the future).
Create new actor as child of this context and give it an automatically generated name (currently similar to base64-encoded integer count, reversed and with “$” prepended, may change in the future).
See akka.actor.Props for details on how to obtain a Props
object.
UnsupportedOperationException
if invoked on an ActorSystem that
uses a custom user guardian
akka.ConfigurationException
if deployment, dispatcher
or mailbox configuration is wrong
Actor reference where messages are re-routed to which were addressed to stopped or non-existing actors.
Actor reference where messages are re-routed to which were addressed to stopped or non-existing actors. Delivery to this actor is done on a best effort basis and hence not strictly guaranteed.
Default dispatcher as configured.
Default dispatcher as configured. This dispatcher is used for all actors in the actor system which do not have a different dispatcher configured explicitly. Importing this member will place the default MessageDispatcher in scope.
Helper object for looking up configured dispatchers.
Helper object for looking up configured dispatchers.
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.
Main event bus of this actor system, used for example for logging.
Main event bus of this actor system, used for example for logging.
Returns the payload that is associated with the provided extension throws an IllegalStateException if it is not registered.
Returns the payload that is associated with the provided extension throws an IllegalStateException if it is not registered. This method can potentially block, waiting for the initialization of the payload, if is in the process of registration from another Thread of execution
The top-level supervisor of all actors created using system.actorOf(...).
The top-level supervisor of all actors created using system.actorOf(...).
Returns whether the specified extension is already registered, this method can potentially block, waiting for the initialization of the payload, if is in the process of registration from another Thread of execution
Returns whether the specified extension is already registered, this method can potentially block, waiting for the initialization of the payload, if is in the process of registration from another Thread of execution
Convenient logging adapter for logging to the ActorSystem#eventStream.
Convenient logging adapter for logging to the ActorSystem#eventStream.
Log the configuration.
Log the configuration.
Filter of log events that is used by the LoggingAdapter before publishing log events to the eventStream
INTERNAL API
INTERNAL API
Helper object for looking up configured mailbox types.
Helper object for looking up configured mailbox types.
The name of this actor system, used to distinguish multiple ones within the same JVM & class loader.
The name of this actor system, used to distinguish multiple ones within the same JVM & class loader.
The ActorRefProvider is the only entity which creates all actor references within this actor system.
The ActorRefProvider is the only entity which creates all actor references within this actor system.
Registers the provided extension and creates its payload, if this extension isn't already registered This method has putIfAbsent-semantics, this method can potentially block, waiting for the initialization of the payload, if is in the process of registration from another Thread of execution
Registers the provided extension and creates its payload, if this extension isn't already registered This method has putIfAbsent-semantics, this method can potentially block, waiting for the initialization of the payload, if is in the process of registration from another Thread of execution
Java API: Register a block of code (callback) to run after ActorSystem.shutdown has been issued and all actors in this actor system have been stopped.
Java API: Register a block of code (callback) to run after ActorSystem.shutdown has been issued and all actors in this actor system have been stopped. Multiple code blocks may be registered by calling this method multiple times. The callbacks will be run sequentially in reverse order of registration, i.e. last registration is run first. Note that ActorSystem will not terminate until all the registered callbacks are finished.
Throws a RejectedExecutionException if the System has already shut down or if shutdown has been initiated.
Register a block of code (callback) to run after ActorSystem.shutdown has been issued and all actors in this actor system have been stopped.
Register a block of code (callback) to run after ActorSystem.shutdown has been issued and all actors in this actor system have been stopped. Multiple code blocks may be registered by calling this method multiple times. The callbacks will be run sequentially in reverse order of registration, i.e. last registration is run first. Note that ActorSystem will not terminate until all the registered callbacks are finished.
Throws a RejectedExecutionException if the System has already shut down or if shutdown has been initiated.
Scala API
Light-weight scheduler for running asynchronous tasks after some deadline in the future.
Light-weight scheduler for running asynchronous tasks after some deadline in the future. Not terribly precise but cheap.
The core settings extracted from the supplied configuration.
The core settings extracted from the supplied configuration.
Stop the actor pointed to by the given akka.actor.ActorRef; this is an asynchronous operation, i.e.
Stop the actor pointed to by the given akka.actor.ActorRef; this is
an asynchronous operation, i.e. involves a message send.
If this method is applied to the self
reference from inside an Actor
then that Actor is guaranteed to not process any further messages after
this call; please note that the processing of the current message will
continue, this method does not immediately terminate this actor.
Create an actor in the "/system" namespace.
Create an actor in the "/system" namespace. This actor will be shut down during system.terminate only after all user actors have terminated.
The top-level supervisor of all system-internal services like logging.
INTERNAL API
INTERNAL API
Terminates this actor system.
Terminates this actor system. This will stop the guardian actor, which in turn
will recursively stop all its child actors, the system guardian
(below which the logging actors reside) and then execute all registered
termination handlers (see ActorSystem#registerOnTermination).
Be careful to not schedule any operations on completion of the returned future
using the dispatcher
of this actor system as it will have been shut down before the
future completes.
A ThreadFactory that can be used if the transport needs to create any Threads
Returns a Future which will be completed after the ActorSystem has been terminated and termination hooks have been executed.
Returns a Future which will be completed after the ActorSystem has been terminated
and termination hooks have been executed. If you registered any callback with
ActorSystem#registerOnTermination, the returned Future from this method will not complete
until all the registered callbacks are finished. Be careful to not schedule any operations
on the dispatcher
of this actor system as it will have been shut down before this
future completes.
Construct an akka.actor.ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally).
Construct an akka.actor.ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.
Construct an akka.actor.ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally).
Construct an akka.actor.ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.
Java API: Create a new child actor path.
Java API: Create a new child actor path.
Java API: Recursively create a descendant’s path by appending all child names.
Java API: Recursively create a descendant’s path by appending all child names.
Start-up time in milliseconds since the epoch.
Start-up time in milliseconds since the epoch.
Up-time of this actor system in seconds.
Up-time of this actor system in seconds.
More powerful interface to the actor system’s implementation which is presented to extensions (see akka.actor.Extension).
Important Notice:
This class is not meant to be extended by user code. If you want to actually roll your own Akka, beware that you are completely on your own in that case!