public class FailureDetectorLoader
extends java.lang.Object
Utility class to create FailureDetector instances reflectively.
| Constructor and Description |
|---|
FailureDetectorLoader() |
| Modifier and Type | Method and Description |
|---|---|
static FailureDetector |
apply(java.lang.String fqcn,
com.typesafe.config.Config config,
akka.actor.ActorContext ctx)
Loads and instantiates a given
FailureDetector implementation. |
static FailureDetector |
load(java.lang.String fqcn,
com.typesafe.config.Config config,
akka.actor.ActorSystem system)
Loads and instantiates a given
FailureDetector implementation. |
public static FailureDetector load(java.lang.String fqcn, com.typesafe.config.Config config, akka.actor.ActorSystem system)
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 implementationsystem - ActorSystem to be used for loading the implementationFailureDetector implementationpublic static FailureDetector apply(java.lang.String fqcn, com.typesafe.config.Config config, akka.actor.ActorContext ctx)
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. Use load(java.lang.String, com.typesafe.config.Config, akka.actor.ActorSystem) if no implicit ActorContext is
available.
fqcn - Fully qualified class name of the implementation to be loaded.config - Configuration that will be passed to the implementationctx - (undocumented)