Class Discovery

  • All Implemented Interfaces:
    Extension

    public final class Discovery
    extends java.lang.Object
    implements Extension
    • Method Detail

      • hashCode

        public static final int hashCode()
      • equals

        public static final boolean equals​(java.lang.Object other)
      • discovery

        public ServiceDiscovery discovery()
                                   throws java.lang.IllegalArgumentException
        Default ServiceDiscovery as configured in pekko.discovery.method.
        Throws:
        java.lang.IllegalArgumentException
      • loadServiceDiscovery

        public ServiceDiscovery loadServiceDiscovery​(java.lang.String method)
        Create a ServiceDiscovery from configuration property. The given method parameter is used to find configuration property "pekko.discovery.[method].class".

        The ServiceDiscovery instance for a given method will be created once and subsequent requests for the same method will return the same instance.