Interface ServiceProviderRegistry<T, M extends GroupMember>

Type Parameters:
T - the service type
M - the member type
All Known Subinterfaces:
ServiceProviderRegistrar<T,M>

public interface ServiceProviderRegistry<T, M extends GroupMember>
A distributed registry of service providers.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the group to associated with this registry.
    getProviders(T service)
    Returns an unmodifiable set of group members providing the specified service
    Returns an unmodifiable set of services for which providers exist.
  • Method Details

    • getGroup

      Group<M> getGroup()
      Returns the group to associated with this registry.
      Returns:
      a group
    • getProviders

      Set<M> getProviders(T service)
      Returns an unmodifiable set of group members providing the specified service
      Parameters:
      service - a service identifier
      Returns:
      an unmodifiable set of group members providing the specified service
    • getServices

      Set<T> getServices()
      Returns an unmodifiable set of services for which providers exist.
      Returns:
      an unmodifiable set of services for which providers exist.