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 Discoveryapply(ActorSystem system)static DiscoverycreateExtension(ExtendedActorSystem system)ServiceDiscoverydiscovery()DefaultServiceDiscoveryas configured inakka.discovery.method.static booleanequals(java.lang.Object other)static Discoveryget(ActorSystem system)static Discoveryget(ClassicActorSystemProvider system)static inthashCode()ServiceDiscoveryloadServiceDiscovery(java.lang.String method)Create aServiceDiscoveryfrom 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
DefaultServiceDiscoveryas configured inakka.discovery.method.- Throws:
java.lang.IllegalArgumentException
-
loadServiceDiscovery
public ServiceDiscovery loadServiceDiscovery(java.lang.String method)
Create aServiceDiscoveryfrom configuration property. The givenmethodparameter is used to find configuration property "akka.discovery.[method].class".The
ServiceDiscoveryinstance for a givenmethodwill be created once and subsequent requests for the samemethodwill return the same instance.
-
-