Package akka.remote
Class FailureDetectorLoader
- java.lang.Object
- 
- akka.remote.FailureDetectorLoader
 
- 
 public class FailureDetectorLoader extends java.lang.ObjectINTERNAL APIUtility class to create FailureDetectorinstances reflectively.
- 
- 
Constructor SummaryConstructors Constructor Description FailureDetectorLoader()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static FailureDetectorapply(java.lang.String fqcn, com.typesafe.config.Config config, ActorContext ctx)Loads and instantiates a givenFailureDetectorimplementation.static FailureDetectorload(java.lang.String fqcn, com.typesafe.config.Config config, ActorSystem system)Loads and instantiates a givenFailureDetectorimplementation.
 
- 
- 
- 
Method Detail- 
loadpublic static FailureDetector load(java.lang.String fqcn, com.typesafe.config.Config config, ActorSystem system) Loads and instantiates a givenFailureDetectorimplementation. The class to be loaded must have a constructor that accepts aConfigand anEventStreamparameter. Will throw ConfigurationException if the implementation cannot be loaded.- Parameters:
- 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
- Returns:
- A configured instance of the given FailureDetectorimplementation
 
 - 
applypublic static FailureDetector apply(java.lang.String fqcn, com.typesafe.config.Config config, ActorContext ctx) Loads and instantiates a givenFailureDetectorimplementation. The class to be loaded must have a constructor that accepts aConfigand anEventStreamparameter. Will throw ConfigurationException if the implementation cannot be loaded. Useload(java.lang.String, com.typesafe.config.Config, akka.actor.ActorSystem)if no implicitActorContextis available.- Parameters:
- fqcn- Fully qualified class name of the implementation to be loaded.
- config- Configuration that will be passed to the implementation
- Returns:
 
 
- 
 
-