Package org.infinispan.multimap.impl
Class EmbeddedMultimapCacheManager<K,V>
- java.lang.Object
-
- org.infinispan.multimap.impl.EmbeddedMultimapCacheManager<K,V>
-
- All Implemented Interfaces:
MultimapCacheManager<K,V>
public class EmbeddedMultimapCacheManager<K,V> extends Object implements MultimapCacheManager<K,V>
Embedded implementation ofMultimapCacheManager
- Since:
- 9.2
- Author:
- Katia Aresti, karesti@redhat.com
-
-
Constructor Summary
Constructors Constructor Description EmbeddedMultimapCacheManager(EmbeddedCacheManager embeddedMultimapCacheManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configuration
defineConfiguration(String name, 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
.MultimapCache<K,V>
get(String name)
Retrieves a named multimap cache from the system.
-
-
-
Constructor Detail
-
EmbeddedMultimapCacheManager
public EmbeddedMultimapCacheManager(EmbeddedCacheManager embeddedMultimapCacheManager)
-
-
Method Detail
-
defineConfiguration
public Configuration defineConfiguration(String name, Configuration configuration)
Description copied from interface:MultimapCacheManager
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".- Specified by:
defineConfiguration
in interfaceMultimapCacheManager<K,V>
- Parameters:
name
- name of multimap cache whose configuration is being definedconfiguration
- configuration overrides to use- Returns:
- a cloned configuration instance
-
get
public MultimapCache<K,V> get(String name)
Description copied from interface:MultimapCacheManager
Retrieves a named multimap cache from the system.- Specified by:
get
in interfaceMultimapCacheManager<K,V>
- 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
-
-