Package org.apache.pekko.actor
Class BootstrapSetup
java.lang.Object
org.apache.pekko.actor.setup.Setup
org.apache.pekko.actor.BootstrapSetup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<ProviderSelection>static BootstrapSetupapply()static BootstrapSetupapply(com.typesafe.config.Config config) Scala API: Short for using custom config but keeping default classloader and default execution contextstatic BootstrapSetupapply(scala.Option<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<ClassLoader>scala.Option<com.typesafe.config.Config>config()static BootstrapSetupcreate()Java API: Construct a bootstrap settings with default values.static BootstrapSetupcreate(com.typesafe.config.Config config) Java API: Short for using custom config but keeping default classloader and default execution contextstatic BootstrapSetupcreate(Optional<ClassLoader> classLoader, Optional<com.typesafe.config.Config> config, Optional<scala.concurrent.ExecutionContext> defaultExecutionContext) Java API: Create bootstrap settings needed for starting the actor systemscala.Option<scala.concurrent.ExecutionContext>withClassloader(ClassLoader classLoader) withConfig(com.typesafe.config.Config config) withDefaultExecutionContext(scala.concurrent.ExecutionContext executionContext)
-
Constructor Details
-
BootstrapSetup
public BootstrapSetup()
-
-
Method Details
-
apply
-
apply
public static BootstrapSetup apply(scala.Option<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
Scala API: Short for using custom config but keeping default classloader and default execution context -
create
public static BootstrapSetup create(Optional<ClassLoader> classLoader, Optional<com.typesafe.config.Config> config, Optional<scala.concurrent.ExecutionContext> defaultExecutionContext) Java API: Create bootstrap settings needed for starting the actor system -
create
Java API: Short for using custom config but keeping default classloader and default execution context -
create
Java API: Construct a bootstrap settings with default values. Note that passing that to the actor system is the same as not passing anyBootstrapSetupat all. You can use the returned instance to derive one that has other values than defaults using the variouswith-methods. -
classLoader
-
config
public scala.Option<com.typesafe.config.Config> config() -
defaultExecutionContext
public scala.Option<scala.concurrent.ExecutionContext> defaultExecutionContext() -
actorRefProvider
-
withClassloader
-
withConfig
-
withDefaultExecutionContext
public BootstrapSetup withDefaultExecutionContext(scala.concurrent.ExecutionContext executionContext) -
withActorRefProvider
-