Class ActorSystemSetup

java.lang.Object
org.apache.pekko.actor.setup.ActorSystemSetup

public final class ActorSystemSetup extends Object
A set of setup settings for programmatic configuration of the actor system.

Constructor is *Internal API*. Use the factory methods create(org.apache.pekko.actor.setup.Setup...) and apply(scala.collection.immutable.Seq<org.apache.pekko.actor.setup.Setup>) to create instances.

  • Method Summary

    Modifier and Type
    Method
    Description
    and(T t)
    alias for withSetup allowing for fluent combination of settings: a and b and c, where a, b and c are concrete pekko.actor.setup.Setup instances.
    apply(scala.collection.immutable.Seq<Setup> settings)
    Scala API: Create an pekko.actor.setup.ActorSystemSetup containing all the provided settings
    create(Setup... settings)
    Java API: Create an pekko.actor.setup.ActorSystemSetup containing all the provided settings
    create(scala.collection.immutable.Seq<Setup> settings)
    Java API: Create an pekko.actor.setup.ActorSystemSetup containing all the provided settings
     
    <T extends Setup>
    Optional<T>
    get(Class<T> clazz)
    Java API: Extract a concrete pekko.actor.setup.Setup of type T if it is defined in the settings.
    <T extends Setup>
    scala.Option<T>
    get(scala.reflect.ClassTag<T> evidence$1)
    Scala API: Extract a concrete pekko.actor.setup.Setup of type T if it is defined in the settings.
     
    withSetup(T t)
    Add a concrete pekko.actor.setup.Setup.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • create

      public static ActorSystemSetup create(Setup... settings)
      Java API: Create an pekko.actor.setup.ActorSystemSetup containing all the provided settings
    • empty

      public static ActorSystemSetup empty()
    • apply

      public static ActorSystemSetup apply(scala.collection.immutable.Seq<Setup> settings)
      Scala API: Create an pekko.actor.setup.ActorSystemSetup containing all the provided settings
    • create

      public static ActorSystemSetup create(scala.collection.immutable.Seq<Setup> settings)
      Java API: Create an pekko.actor.setup.ActorSystemSetup containing all the provided settings
    • get

      public <T extends Setup> Optional<T> get(Class<T> clazz)
      Java API: Extract a concrete pekko.actor.setup.Setup of type T if it is defined in the settings.
    • get

      public <T extends Setup> scala.Option<T> get(scala.reflect.ClassTag<T> evidence$1)
      Scala API: Extract a concrete pekko.actor.setup.Setup of type T if it is defined in the settings.
    • withSetup

      public <T extends Setup> ActorSystemSetup withSetup(T t)
      Add a concrete pekko.actor.setup.Setup. If a setting of the same concrete pekko.actor.setup.Setup already is present it will be replaced.
    • and

      public <T extends Setup> ActorSystemSetup and(T t)
      alias for withSetup allowing for fluent combination of settings: a and b and c, where a, b and c are concrete pekko.actor.setup.Setup instances. If a setting of the same concrete pekko.actor.setup.Setup already is present it will be replaced.
    • toString

      public String toString()
      Overrides:
      toString in class Object