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>, AutoCloseable
InfinispanCachebasedServiceProviderRegistry. This factory can create multipleServiceProviderRegistrationinstance, all of which share the sameCacheinstance.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CacheServiceProviderRegistry(CacheServiceProviderRegistryConfiguration<T> config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()GroupgetGroup()Set<Node>getProviders(T service)Set<T>getServices()CompletionStage<Void>modified(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<T,Set<org.infinispan.remoting.transport.Address>> event)ServiceProviderRegistration<T>register(T service)ServiceProviderRegistration<T>register(T service, ServiceProviderRegistration.Listener listener)CompletionStage<Void>topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<T,Set<org.infinispan.remoting.transport.Address>> event)
-
-
-
Constructor Detail
-
CacheServiceProviderRegistry
public CacheServiceProviderRegistry(CacheServiceProviderRegistryConfiguration<T> config)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceAutoCloseableServiceProviderRegistry<T>
-
getGroup
public Group getGroup()
- Specified by:
getGroupin interfaceServiceProviderRegistry<T>
-
register
public ServiceProviderRegistration<T> register(T service)
-
register
public ServiceProviderRegistration<T> register(T service, ServiceProviderRegistration.Listener listener)
- Specified by:
registerin interfaceServiceProviderRegistry<T>
-
getProviders
public Set<Node> getProviders(T service)
- Specified by:
getProvidersin interfaceServiceProviderRegistry<T>
-
getServices
public Set<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)
-
-