Class CacheServiceProviderRegistry<T>
java.lang.Object
org.wildfly.clustering.server.infinispan.provider.CacheServiceProviderRegistry<T>
- Type Parameters:
T- the service identifier type
- All Implemented Interfaces:
AutoCloseable,ServiceProviderRegistry<T>,Registrar<T>,AutoCloseableServiceProviderRegistry<T>
public class CacheServiceProviderRegistry<T>
extends Object
implements AutoCloseableServiceProviderRegistry<T>
Infinispan
Cache based ServiceProviderRegistry.
This factory can create multiple ServiceProviderRegistration instance,
all of which share the same Cache instance.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getGroup()getProviders(T service) modified(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<T, Set<org.infinispan.remoting.transport.Address>> event) register(T service, ServiceProviderRegistration.Listener listener) topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<T, Set<org.infinispan.remoting.transport.Address>> event)
-
Constructor Details
-
CacheServiceProviderRegistry
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceAutoCloseableServiceProviderRegistry<T>
-
getGroup
- Specified by:
getGroupin interfaceServiceProviderRegistry<T>
-
register
-
register
public ServiceProviderRegistration<T> register(T service, ServiceProviderRegistration.Listener listener) - Specified by:
registerin interfaceServiceProviderRegistry<T>
-
getProviders
- Specified by:
getProvidersin interfaceServiceProviderRegistry<T>
-
getServices
- Specified by:
getServicesin interfaceServiceProviderRegistry<T>
-
topologyChanged
public CompletionStage<Void> topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<T, Set<org.infinispan.remoting.transport.Address>> event) -
modified
public CompletionStage<Void> modified(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<T, Set<org.infinispan.remoting.transport.Address>> event)
-