public interface JetCacheManager
JetCacheManageris the entry point to access JSR-107 (JCache) caches via
JetInstanceinterface. Hazelcast Jet's
JetCacheManagerprovides access to JCache caches configured cluster-wide, even when created by different JCache
Note that this interface is not related to JCache
CacheManager. Its purpose is to host
IStreamCache related methods, separately from
JetInstance, in order to allow frameworks that make
use of reflection and/or dynamic proxies (e.g. Mockito, Spring etc) to operate on
JetInstance when JCache
is not on the classpath.
<K,V> IStreamCache<K,V> getCache(String name)
Returns 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,
<prefixed_cache_name> = [<uri_prefix>/] + [<cl_prefix>/] + <pure_cache_name>
<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. (
name- the prefixed name of the cache
com.hazelcast.cache.CacheNotExistsException- if there is no configured or created cache with the specified prefixed name
IllegalStateException- if a valid JCache library does not exist in the classpath (
0.xversions are not valid)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.