|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectakka.remote.FailureDetectorLoader$
public class FailureDetectorLoader$
INTERNAL API
Utility class to create FailureDetector instances reflectively.
| Field Summary | |
|---|---|
static FailureDetectorLoader$ |
MODULE$
Static reference to the singleton instance of this Scala object. |
| Constructor Summary | |
|---|---|
FailureDetectorLoader$()
|
|
| Method Summary | |
|---|---|
FailureDetector |
apply(java.lang.String fqcn,
com.typesafe.config.Config config,
akka.actor.ActorContext ctx)
Loads and instantiates a given FailureDetector implementation. |
FailureDetector |
load(java.lang.String fqcn,
com.typesafe.config.Config config,
akka.actor.ActorSystem system)
Loads and instantiates a given FailureDetector implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FailureDetectorLoader$ MODULE$
| Constructor Detail |
|---|
public FailureDetectorLoader$()
| Method Detail |
|---|
public 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 implementation
FailureDetector implementation
public 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 FailureDetectorLoader.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 implementation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||