Package akka.remote

Class FailureDetectorLoader$

  • public class FailureDetectorLoader$
    extends java.lang.Object

    Utility class to create FailureDetector instances reflectively.

    • Field Detail

      • MODULE$

        public static final FailureDetectorLoader$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • FailureDetectorLoader$

        public FailureDetectorLoader$()
    • Method Detail

      • load

        public FailureDetector load​(java.lang.String fqcn,
                                    com.typesafe.config.Config config,
                                    ActorSystem system)
        Loads and instantiates a given FailureDetector implementation. The class to be loaded must have a constructor that accepts a Config and an EventStream parameter. Will throw ConfigurationException if the implementation cannot be loaded.

        fqcn - Fully qualified class name of the implementation to be loaded.
        config - Configuration that will be passed to the implementation
        system - ActorSystem to be used for loading the implementation
        A configured instance of the given FailureDetector implementation