Package akka.discovery
Class Discovery
- java.lang.Object
-
- akka.discovery.Discovery
-
-
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 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)
-
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
.- 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.
-
-