Class Discovery

  • All Implemented Interfaces:
    Extension

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

      • checkClassPathForOldDiscovery

        public static void checkClassPathForOldDiscovery​(ExtendedActorSystem system)
        INTERNAL API
        Parameters:
        system - (undocumented)
      • discovery

        public ServiceDiscovery discovery()
                                   throws java.lang.IllegalArgumentException
        Default ServiceDiscovery as configured in akka.discovery.method.
        Returns:
        (undocumented)
        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 "akka.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.

        Parameters:
        method - (undocumented)
        Returns:
        (undocumented)