Package akka.actor
Class BootstrapSetup
- java.lang.Object
-
- akka.actor.setup.Setup
-
- akka.actor.BootstrapSetup
-
public final class BootstrapSetup extends Setup
-
-
Constructor Summary
Constructors Constructor Description BootstrapSetup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.Option<ProviderSelection>
actorRefProvider()
static BootstrapSetup
apply()
static BootstrapSetup
apply(com.typesafe.config.Config config)
Scala API: Short for using custom config but keeping default classloader and default execution contextstatic BootstrapSetup
apply(scala.Option<java.lang.ClassLoader> classLoader, scala.Option<com.typesafe.config.Config> config, scala.Option<scala.concurrent.ExecutionContext> defaultExecutionContext)
Scala API: Create bootstrap settings needed for starting the actor systemscala.Option<java.lang.ClassLoader>
classLoader()
scala.Option<com.typesafe.config.Config>
config()
static BootstrapSetup
create()
Java API: Construct a bootstrap settings with default values.static BootstrapSetup
create(com.typesafe.config.Config config)
Java API: Short for using custom config but keeping default classloader and default execution contextstatic BootstrapSetup
create(java.util.Optional<java.lang.ClassLoader> classLoader, java.util.Optional<com.typesafe.config.Config> config, java.util.Optional<scala.concurrent.ExecutionContext> defaultExecutionContext)
Java API: Create bootstrap settings needed for starting the actor systemscala.Option<scala.concurrent.ExecutionContext>
defaultExecutionContext()
BootstrapSetup
withActorRefProvider(ProviderSelection name)
BootstrapSetup
withClassloader(java.lang.ClassLoader classLoader)
BootstrapSetup
withConfig(com.typesafe.config.Config config)
BootstrapSetup
withDefaultExecutionContext(scala.concurrent.ExecutionContext executionContext)
-
-
-
Method Detail
-
apply
public static BootstrapSetup apply()
-
apply
public static BootstrapSetup apply(scala.Option<java.lang.ClassLoader> classLoader, scala.Option<com.typesafe.config.Config> config, scala.Option<scala.concurrent.ExecutionContext> defaultExecutionContext)
Scala API: Create bootstrap settings needed for starting the actor system
-
apply
public static BootstrapSetup apply(com.typesafe.config.Config config)
Scala API: Short for using custom config but keeping default classloader and default execution context
-
create
public static BootstrapSetup create(java.util.Optional<java.lang.ClassLoader> classLoader, java.util.Optional<com.typesafe.config.Config> config, java.util.Optional<scala.concurrent.ExecutionContext> defaultExecutionContext)
Java API: Create bootstrap settings needed for starting the actor system
-
create
public static BootstrapSetup create(com.typesafe.config.Config config)
Java API: Short for using custom config but keeping default classloader and default execution context
-
create
public static BootstrapSetup create()
Java API: Construct a bootstrap settings with default values. Note that passing that to the actor system is the same as not passing anyBootstrapSetup
at all. You can use the returned instance to derive one that has other values than defaults using the variouswith
-methods.
-
classLoader
public scala.Option<java.lang.ClassLoader> classLoader()
-
config
public scala.Option<com.typesafe.config.Config> config()
-
defaultExecutionContext
public scala.Option<scala.concurrent.ExecutionContext> defaultExecutionContext()
-
actorRefProvider
public scala.Option<ProviderSelection> actorRefProvider()
-
withClassloader
public BootstrapSetup withClassloader(java.lang.ClassLoader classLoader)
-
withConfig
public BootstrapSetup withConfig(com.typesafe.config.Config config)
-
withDefaultExecutionContext
public BootstrapSetup withDefaultExecutionContext(scala.concurrent.ExecutionContext executionContext)
-
withActorRefProvider
public BootstrapSetup withActorRefProvider(ProviderSelection name)
-
-