Interface CacheContainerRegistryFactory<K,V>
- Type Parameters:
K- the registry key typeV- the registry value type
- All Superinterfaces:
org.wildfly.clustering.server.registry.RegistryFactory<CacheContainerGroupMember,K, V>
public interface CacheContainerRegistryFactory<K,V>
extends org.wildfly.clustering.server.registry.RegistryFactory<CacheContainerGroupMember,K,V>
An embedded Infinispan registry factory.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptioncreateRegistry(Map.Entry<K, V> entry) static <K,V> CacheContainerRegistryFactory <K, V> singleton(BiFunction<Map.Entry<K, V>, Runnable, CacheContainerRegistry<K, V>> factory) Returns a singleton registry factory that only permits a single registry entry per instance.
-
Method Details
-
createRegistry
- Specified by:
createRegistryin interfaceorg.wildfly.clustering.server.registry.RegistryFactory<CacheContainerGroupMember,K, V>
-
singleton
static <K,V> CacheContainerRegistryFactory<K,V> singleton(BiFunction<Map.Entry<K, V>, Runnable, CacheContainerRegistry<K, V>> factory) Returns a singleton registry factory that only permits a single registry entry per instance.- Type Parameters:
K- the registry key typeV- the registry value type- Parameters:
factory- a registry factory creating a registry from an entry and close task- Returns:
- a singleton registry factory
-