Package org.apache.pekko.remote
Class FailureDetectorLoader$
java.lang.Object
org.apache.pekko.remote.FailureDetectorLoader$
INTERNAL API
Utility class to create FailureDetector instances reflectively.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FailureDetectorLoader$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(String fqcn, com.typesafe.config.Config config, ActorContext ctx) Loads and instantiates a givenFailureDetectorimplementation.load(String fqcn, com.typesafe.config.Config config, ActorSystem system) Loads and instantiates a givenFailureDetectorimplementation.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
FailureDetectorLoader$
public FailureDetectorLoader$()
-
-
Method Details
-
load
Loads and instantiates a givenFailureDetectorimplementation. The class to be loaded must have a constructor that accepts aConfigand anpekko.event.EventStreamparameter. 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 implementationsystem- ActorSystem to be used for loading the implementation- Returns:
- A configured instance of the given
FailureDetectorimplementation
-
apply
Loads and instantiates a givenFailureDetectorimplementation. The class to be loaded must have a constructor that accepts aConfigand anpekko.event.EventStreamparameter. Will throw ConfigurationException if the implementation cannot be loaded. UseFailureDetectorLoader.load(java.lang.String, com.typesafe.config.Config, org.apache.pekko.actor.ActorSystem)if no implicitpekko.actor.ActorContextis available.- Parameters:
fqcn- Fully qualified class name of the implementation to be loaded.config- Configuration that will be passed to the implementation- Returns:
-