Package org.apache.pekko.discovery
Class Discovery
java.lang.Object
org.apache.pekko.discovery.Discovery
- All Implemented Interfaces:
Extension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Discoveryapply(ActorSystem system) static DiscoverycreateExtension(ExtendedActorSystem system) DefaultServiceDiscoveryas configured inpekko.discovery.method.static final booleanstatic Discoveryget(ActorSystem system) static Discoveryget(ClassicActorSystemProvider system) static final inthashCode()loadServiceDiscovery(String method) Create aServiceDiscoveryfrom configuration property.static Discovery$lookup()
-
Constructor Details
-
Discovery
-
-
Method Details
-
apply
-
lookup
-
get
-
get
-
createExtension
-
hashCode
public static final int hashCode() -
equals
-
discovery
DefaultServiceDiscoveryas configured inpekko.discovery.method.- Throws:
IllegalArgumentException
-
loadServiceDiscovery
Create aServiceDiscoveryfrom configuration property. The givenmethodparameter is used to find configuration property "pekko.discovery.[method].class".The
ServiceDiscoveryinstance for a givenmethodwill be created once and subsequent requests for the samemethodwill return the same instance.
-