Interface ServiceProviderRegistry<T,M extends GroupMember>
- Type Parameters:
T- the service typeM- 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 TypeMethodDescriptiongetGroup()Returns the group to associated with this registry.getProviders(T service) Returns an unmodifiable set of group members providing the specified serviceReturns an unmodifiable set of services for which providers exist.
-
Method Details
-
getGroup
Returns the group to associated with this registry.- Returns:
- a group
-
getProviders
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
Returns an unmodifiable set of services for which providers exist.- Returns:
- an unmodifiable set of services for which providers exist.
-