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
Its purpose is to host
ICacheJet 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> com.hazelcast.cache.ICache<K,V> getCache(String name)
<prefixed_cache_name> = [<uri_prefix>/][<cl_prefix>/]<simple_cache_name>
<simple_cache_name>is the cache name without any prefix.
It's possible to use the cache as a data source or sink in a Jet
Sinks.cache(String) and the change stream of the cache can be read
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)
CacheUtil.getPrefixedCacheName(String, java.net.URI, ClassLoader)
Copyright © 2019 Hazelcast, Inc.. All rights reserved.