Class ActorSystemSetup


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

    Constructor is *Internal API*. Use the factory methods create(akka.actor.setup.Setup...) and akka.actor.Actor#apply to create instances.

    • Constructor Detail

      • ActorSystemSetup

        public ActorSystemSetup​(scala.collection.immutable.Map<java.lang.Class<?>,​java.lang.Object> setups)
    • Method Detail

      • create

        public static ActorSystemSetup create​(Setup... settings)
        Java API: Create an ActorSystemSetup containing all the provided settings
        Parameters:
        settings - (undocumented)
        Returns:
        (undocumented)
      • apply

        public static ActorSystemSetup apply​(scala.collection.Seq<Setup> settings)
        Scala API: Create an ActorSystemSetup containing all the provided settings
        Parameters:
        settings - (undocumented)
        Returns:
        (undocumented)
      • create

        public static ActorSystemSetup create​(scala.collection.Seq<Setup> settings)
        Java API: Create an ActorSystemSetup containing all the provided settings
        Parameters:
        settings - (undocumented)
        Returns:
        (undocumented)
      • setups

        public scala.collection.immutable.Map<java.lang.Class<?>,​java.lang.Object> setups()
      • get

        public <T extends Setup> java.util.Optional<T> get​(java.lang.Class<T> clazz)
        Java API: Extract a concrete Setup of type T if it is defined in the settings.
        Parameters:
        clazz - (undocumented)
        Returns:
        (undocumented)
      • get

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

        public <T extends SetupActorSystemSetup withSetup​(T t)
        Add a concrete Setup. If a setting of the same concrete Setup already is present it will be replaced.
        Parameters:
        t - (undocumented)
        Returns:
        (undocumented)
      • and

        public <T extends SetupActorSystemSetup and​(T t)
        alias for withSetup allowing for fluent combination of settings: a and b and c, where a, b and c are concrete Setup instances. If a setting of the same concrete Setup already is present it will be replaced.
        Parameters:
        t - (undocumented)
        Returns:
        (undocumented)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object