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)
ICacheManager
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 the URI as a US-ASCII string: (uri.toASCIIString()
).
Classloader prefix is generated as a string representation of the specified classloader: (cl.toString()
)
getCache
in interface ICacheManager
name
- the prefixed name of the cacheCacheUtil.getPrefixedCacheName(String, java.net.URI, ClassLoader)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.