Package com.ibm.ws.cache.spi
Class DistributedMapFactory
- java.lang.Object
-
- com.ibm.ws.cache.spi.DistributedMapFactory
-
public class DistributedMapFactory extends java.lang.Object
This class provides internal WAS components with factory methods to create/lookup instances of a DistributedMap. Each DistributedMap instance can be configured independently.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DistributedMap
getMap(java.lang.String name)
Deprecated.Use DistributedObjectCacheFactorystatic DistributedMap
getMap(java.lang.String name, java.util.Properties properties)
Deprecated.Use DistributedObjectCacheFactory
-
-
-
Method Detail
-
getMap
@Deprecated public static DistributedMap getMap(java.lang.String name)
Deprecated.Use DistributedObjectCacheFactoryReturns the DistributedMap instance specified by the given id. If the given instance has not yet been created, then a new instance is created using the default parameters.- Parameters:
name
- instance name of the DistributedMap- Returns:
- A DistributedMap instance
- See Also:
DistributedObjectCacheFactory
-
getMap
@Deprecated public static DistributedMap getMap(java.lang.String name, java.util.Properties properties)
Deprecated.Use DistributedObjectCacheFactoryReturns the DistributedMap instance specified by the given id, using the the parameters specified in properties. If the given instance has not yet been created, then a new instance is created using the parameters specified in the properties object.
Properties:com.ibm.ws.cache.CacheConfig.CACHE_SIZE integer the maximum number of cache entries com.ibm.ws.cache.CacheConfig.ENABLE_DISK_OFFLOAD boolean true to enable disk offload com.ibm.ws.cache.CacheConfig.DISK_OFFLOAD_LOCATION directory to contain offloaded cache entries - Parameters:
name
- instance name of the DistributedMapproperties
-- Returns:
- A DistributedMap instance
- See Also:
DistributedObjectCacheFactory
-
-