public class ActorSystem$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ActorSystem$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
ActorSystem$() |
Modifier and Type | Method and Description |
---|---|
ActorSystem |
apply()
Creates a new ActorSystem with the name "default",
obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader,
then tries to walk the stack to find the callers class loader, then falls back to the ClassLoader
associated with the ActorSystem class.
|
ActorSystem |
apply(java.lang.String name)
Creates a new ActorSystem with the specified name,
obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader,
then tries to walk the stack to find the callers class loader, then falls back to the ClassLoader
associated with the ActorSystem class.
|
ActorSystem |
apply(java.lang.String name,
ActorSystemSetup setup)
Scala API: Creates a new actor system with the specified name and settings
The core actor system settings are defined in
BootstrapSetup |
ActorSystem |
apply(java.lang.String name,
BootstrapSetup bootstrapSetup)
Scala API: Shortcut for creating an actor system with custom bootstrap settings.
|
ActorSystem |
apply(java.lang.String name,
com.typesafe.config.Config config)
Creates a new ActorSystem with the specified name, and the specified Config, then
obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader,
then tries to walk the stack to find the callers class loader, then falls back to the ClassLoader
associated with the ActorSystem class.
|
ActorSystem |
apply(java.lang.String name,
com.typesafe.config.Config config,
java.lang.ClassLoader classLoader)
Creates a new ActorSystem with the specified name, the specified Config, and specified ClassLoader
|
ActorSystem |
apply(java.lang.String name,
scala.Option<com.typesafe.config.Config> config,
scala.Option<java.lang.ClassLoader> classLoader,
scala.Option<scala.concurrent.ExecutionContext> defaultExecutionContext)
Creates a new ActorSystem with the specified name,
the specified ClassLoader if given, otherwise obtains the current ClassLoader by first inspecting the current
threads' getContextClassLoader, then tries to walk the stack to find the callers class loader, then
falls back to the ClassLoader associated with the ActorSystem class.
|
ActorSystem |
create()
Creates a new ActorSystem with the name "default",
obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader,
then tries to walk the stack to find the callers class loader, then falls back to the ClassLoader
associated with the ActorSystem class.
|
ActorSystem |
create(java.lang.String name)
Creates a new ActorSystem with the specified name,
obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader,
then tries to walk the stack to find the callers class loader, then falls back to the ClassLoader
associated with the ActorSystem class.
|
ActorSystem |
create(java.lang.String name,
ActorSystemSetup setups)
Java API: Creates a new actor system with the specified name and settings
The core actor system settings are defined in
BootstrapSetup |
ActorSystem |
create(java.lang.String name,
BootstrapSetup bootstrapSetup)
Java API: Shortcut for creating an actor system with custom bootstrap settings.
|
ActorSystem |
create(java.lang.String name,
com.typesafe.config.Config config)
Creates a new ActorSystem with the specified name, and the specified Config, then
obtains the current ClassLoader by first inspecting the current threads' getContextClassLoader,
then tries to walk the stack to find the callers class loader, then falls back to the ClassLoader
associated with the ActorSystem class.
|
ActorSystem |
create(java.lang.String name,
com.typesafe.config.Config config,
java.lang.ClassLoader classLoader)
Creates a new ActorSystem with the specified name, the specified Config, and specified ClassLoader
|
ActorSystem |
create(java.lang.String name,
com.typesafe.config.Config config,
java.lang.ClassLoader classLoader,
scala.concurrent.ExecutionContext defaultExecutionContext)
Creates a new ActorSystem with the specified name, the specified Config, the specified ClassLoader,
and the specified ExecutionContext.
|
scala.Option<java.lang.String> |
EnvHome() |
java.lang.ClassLoader |
findClassLoader() |
scala.Option<java.lang.String> |
GlobalHome() |
scala.Option<java.lang.String> |
SystemHome() |
java.lang.String |
Version() |
public static final ActorSystem$ MODULE$
public java.lang.String Version()
public scala.Option<java.lang.String> EnvHome()
public scala.Option<java.lang.String> SystemHome()
public scala.Option<java.lang.String> GlobalHome()
public ActorSystem create()
public ActorSystem create(java.lang.String name)
name
- (undocumented)public ActorSystem create(java.lang.String name, ActorSystemSetup setups)
BootstrapSetup
name
- (undocumented)setups
- (undocumented)public ActorSystem create(java.lang.String name, BootstrapSetup bootstrapSetup)
ActorSystem.create(name, ActorSystemSetup.create(bootstrapSettings))
name
- (undocumented)bootstrapSetup
- (undocumented)public ActorSystem create(java.lang.String name, com.typesafe.config.Config config)
name
- (undocumented)config
- (undocumented)public ActorSystem create(java.lang.String name, com.typesafe.config.Config config, java.lang.ClassLoader classLoader)
name
- (undocumented)config
- (undocumented)classLoader
- (undocumented)public ActorSystem create(java.lang.String name, com.typesafe.config.Config config, java.lang.ClassLoader classLoader, scala.concurrent.ExecutionContext defaultExecutionContext)
null
is passed in for the Config, ClassLoader and/or ExecutionContext parameters, the respective default value
will be used. If no Config is given, the default reference config will be obtained from the ClassLoader.
If no ClassLoader is given, it obtains the current ClassLoader by first inspecting the current
threads' getContextClassLoader, then tries to walk the stack to find the callers class loader, then
falls back to the ClassLoader associated with the ActorSystem class. If no ExecutionContext is given, the
system will fallback to the executor configured under "akka.actor.default-dispatcher.default-executor.fallback".
Note that the given ExecutionContext will be used by all dispatchers that have been configured with
executor = "default-executor", including those that have not defined the executor setting and thereby fallback
to the default of "default-dispatcher.executor".
name
- (undocumented)config
- (undocumented)classLoader
- (undocumented)defaultExecutionContext
- (undocumented)public ActorSystem apply()
public ActorSystem apply(java.lang.String name)
name
- (undocumented)public ActorSystem apply(java.lang.String name, ActorSystemSetup setup)
BootstrapSetup
name
- (undocumented)setup
- (undocumented)public ActorSystem apply(java.lang.String name, BootstrapSetup bootstrapSetup)
ActorSystem(name, ActorSystemSetup(bootstrapSetup))
name
- (undocumented)bootstrapSetup
- (undocumented)public ActorSystem apply(java.lang.String name, com.typesafe.config.Config config)
name
- (undocumented)config
- (undocumented)public ActorSystem apply(java.lang.String name, com.typesafe.config.Config config, java.lang.ClassLoader classLoader)
name
- (undocumented)config
- (undocumented)classLoader
- (undocumented)public ActorSystem apply(java.lang.String name, scala.Option<com.typesafe.config.Config> config, scala.Option<java.lang.ClassLoader> classLoader, scala.Option<scala.concurrent.ExecutionContext> defaultExecutionContext)
name
- (undocumented)config
- (undocumented)classLoader
- (undocumented)defaultExecutionContext
- (undocumented)public java.lang.ClassLoader findClassLoader()