Package akka.discovery
Class Discovery
- java.lang.Object
-
- akka.discovery.Discovery
-
- All Implemented Interfaces:
Extension
public final class Discovery extends java.lang.Object implements Extension
DefaultServiceDiscovery
as configured inakka.discovery.method
.
-
-
Constructor Summary
Constructors Constructor Description Discovery(ExtendedActorSystem system)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Discovery
apply(ActorSystem system)
static void
checkClassPathForOldDiscovery(ExtendedActorSystem system)
INTERNAL APIstatic Discovery
createExtension(ExtendedActorSystem system)
ServiceDiscovery
discovery()
DefaultServiceDiscovery
as configured inakka.discovery.method
.static boolean
equals(java.lang.Object other)
static Discovery
get(ActorSystem system)
static Discovery
get(ClassicActorSystemProvider system)
static int
hashCode()
ServiceDiscovery
loadServiceDiscovery(java.lang.String method)
Create aServiceDiscovery
from configuration property.static Discovery$
lookup()
-
-
-
Constructor Detail
-
Discovery
public Discovery(ExtendedActorSystem system)
-
-
Method Detail
-
apply
public static Discovery apply(ActorSystem system)
-
lookup
public static Discovery$ lookup()
-
get
public static Discovery get(ActorSystem system)
-
get
public static Discovery get(ClassicActorSystemProvider system)
-
createExtension
public static Discovery createExtension(ExtendedActorSystem system)
-
checkClassPathForOldDiscovery
public static void checkClassPathForOldDiscovery(ExtendedActorSystem system)
INTERNAL API- Parameters:
system
- (undocumented)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
discovery
public ServiceDiscovery discovery() throws java.lang.IllegalArgumentException
DefaultServiceDiscovery
as configured inakka.discovery.method
.- Returns:
- (undocumented)
- Throws:
java.lang.IllegalArgumentException
-
loadServiceDiscovery
public ServiceDiscovery loadServiceDiscovery(java.lang.String method)
Create aServiceDiscovery
from configuration property. The givenmethod
parameter is used to find configuration property "akka.discovery.[method].class".The
ServiceDiscovery
instance for a givenmethod
will be created once and subsequent requests for the samemethod
will return the same instance.- Parameters:
method
- (undocumented)- Returns:
- (undocumented)
-
-