Package org.wildfly.clustering.provider
Interface ServiceProviderRegistry<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GroupgetGroup()Returns the group with which to register service providers.Set<Node>getProviders(T service)Returns the set of nodes that can provide the specified service.Set<T>getServices()Returns the complete list of services known to this registry.ServiceProviderRegistration<T>register(T service)Registers the local node as providing the specified service.ServiceProviderRegistration<T>register(T service, ServiceProviderRegistration.Listener listener)Registers the local node as providing the specified service, using the specified listener.
-
-
-
Method Detail
-
getGroup
Group getGroup()
Returns the group with which to register service providers.- Returns:
- a group
-
register
ServiceProviderRegistration<T> register(T service)
Registers the local node as providing the specified service.
-
register
ServiceProviderRegistration<T> register(T service, ServiceProviderRegistration.Listener listener)
Registers the local node as providing the specified service, using the specified listener.- Parameters:
service- a service to registerlistener- a registry listener- Returns:
- a new service provider registration
-
getProviders
Set<Node> getProviders(T service)
Returns the set of nodes that can provide the specified service.- Parameters:
service- a service to obtain providers for- Returns:
- a set of nodes
-
-