public class HazelcastInstanceCacheManager extends Object implements ICacheManager
ICacheManager implementation accessible via HazelcastInstance that provides access to JSR-107
(JCache) caches configured on the cluster via Hazelcast API.ICacheManager| Constructor and Description |
|---|
HazelcastInstanceCacheManager(HazelcastInstanceImpl original) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> ICache<K,V> |
getCache(String name)
Returns the cache instance with the specified prefixed cache name.
|
<K,V> ICache<K,V> |
getCacheByFullName(String fullName) |
public HazelcastInstanceCacheManager(HazelcastInstanceImpl original)
public <K,V> ICache<K,V> getCache(String name)
ICacheManagerReturns the cache instance with the specified prefixed cache name.
Prefixed cache name is the name with URI and classloader prefixes if available.
There is no Hazelcast prefix (/hz/). For example, myURI/foo.
<prefixed_cache_name> = [<uri_prefix>/] + [<cl_prefix>/] + <pure_cache_name>
where <pure_cache_name> is the cache name without any prefix. For example foo.
As seen from the definition, URI and classloader prefixes are optional.
URI prefix is generated as content of this URI as a US-ASCII string. (uri.toASCIIString())
Classloader prefix is generated as string representation of the specified classloader. (cl.toString())getCache in interface ICacheManagername - the prefixed name of the cacheCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.