Interface MultimapCacheManager<K,V>
-
- All Known Implementing Classes:
EmbeddedMultimapCacheManager
@Experimental public interface MultimapCacheManager<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.infinispan.configuration.cache.ConfigurationdefineConfiguration(String name, org.infinispan.configuration.cache.Configuration configuration)Defines a named multimap cache's configuration by using the provided configuration If this cache was already configured either declaritively or programmatically this method will throw aCacheConfigurationException.default MultimapCache<K,V>get(String name)Retrieves a named multimap cache from the system.MultimapCache<K,V>get(String name, boolean supportsDuplicates)Retrieves a named multimap cache from the system.
-
-
-
Method Detail
-
defineConfiguration
org.infinispan.configuration.cache.Configuration defineConfiguration(String name, org.infinispan.configuration.cache.Configuration configuration)
Defines a named multimap cache's configuration by using the provided configuration If this cache was already configured either declaritively or programmatically this method will throw aCacheConfigurationException. Currenly, the MultimapCache with the given name "foo" can be also accessed as a regular cache named "foo".- Parameters:
name- name of multimap cache whose configuration is being definedconfiguration- configuration overrides to use- Returns:
- a cloned configuration instance
-
get
default MultimapCache<K,V> get(String name)
Retrieves a named multimap cache from the system.- Parameters:
name- , name of multimap cache to retrieve- Returns:
- null if no configuration exists as per rules set above, otherwise returns a multimap cache instance identified by cacheName and doesn't support duplicates
-
get
MultimapCache<K,V> get(String name, boolean supportsDuplicates)
Retrieves a named multimap cache from the system.- Parameters:
name- , name of multimap cache to retrievesupportsDuplicates- , boolean check to see whether duplicates are supported or not- Returns:
- null if no configuration exists as per rules set above, otherwise returns a multimap cache instance identified by cacheName
-
-