Interface ServiceProviderRegistry<T>

Type Parameters:
T - a service type
All Superinterfaces:
Registrar<T>

@Deprecated(forRemoval=true) public interface ServiceProviderRegistry<T> extends Registrar<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by org.wildfly.clustering.server.provider.ServiceProviderRegistry.
A distributed registry of service providers. Allows capability to query which nodes can provide a given service.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the group with which to register service providers.
    getProviders(T service)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the set of nodes that can provide the specified service.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the complete list of services known to this registry.
    register(T service)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Registers the local node as providing the specified service.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Registers the local node as providing the specified service, using the specified listener.
  • Method Details

    • getGroup

      Group getGroup()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the group with which to register service providers.
      Returns:
      a group
    • register

      ServiceProviderRegistration<T> register(T service)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Registers the local node as providing the specified service.
      Specified by:
      register in interface Registrar<T>
      Parameters:
      service - a service to register
      Returns:
      a new service provider registration
    • register

      Deprecated, for removal: This API element is subject to removal in a future version.
      Registers the local node as providing the specified service, using the specified listener.
      Parameters:
      service - a service to register
      listener - a registry listener
      Returns:
      a new service provider registration
    • getProviders

      Set<Node> getProviders(T service)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the set of nodes that can provide the specified service.
      Parameters:
      service - a service to obtain providers for
      Returns:
      a set of nodes
    • getServices

      Set<T> getServices()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the complete list of services known to this registry.
      Returns:
      a set of services