Package com.tangosol.coherence.jcache
Interface CoherenceBasedCache<K,V>
- Type Parameters:
K
- the type of keys for theCache
V
- the type of values for theCache
- All Superinterfaces:
AutoCloseable
,javax.cache.Cache<K,
,V> Closeable
,Iterable<javax.cache.Cache.Entry<K,
V>>
- All Known Implementing Classes:
AbstractCoherenceBasedCache
,LocalCache
,PartitionedCache
,PassThroughCache
,RemoteCache
public interface CoherenceBasedCache<K,V>
extends javax.cache.Cache<K,V>
An Coherence-based implementation of a
Cache
.
All Coherence-based implementations of Cache
should implement this interface.
- Since:
- Coherence 12.1.3
- Author:
- bo 2013.11.04
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.cache.Cache
javax.cache.Cache.Entry<K,
V> -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAME
back-scheme caches.static final String
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAME
back-scheme service.static final String
The name of the Coherence NamedCache that will hold JCacheConfiguration
s.static final String
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAME
caches.static final String
The name of the Coherence Service that will manageJCACHE_CONFIG_CACHE_NAME
caches.static final String
static final String
static final String
static final String
The name of the Coherence NamedCache onto which Local JCaches will be mapped.static final String
The Coherence NamedCache name prefix that JCache Local Caches will use.static final String
The name of the Coherence Scheme that will manage Local caches.static final String
The name of the Coherence Service that will manage Local caches.static final String
The name of the Coherence NamedCache onto which Partitioned JCaches will be mapped.static final String
The Coherence NamedCache name prefix that JCache Partitioned Caches use internally.static final String
The name of the Coherence Scheme that will manage partitioned caches.static final String
The name of the Coherence Service that will manage partitioned caches.static final String
The name of the Coherence remote scheme for JCache. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroys aCoherenceBasedCache
due to a request from aCoherenceBasedCacheManager
.Obtain the internal identifier used for JCache caches.Methods inherited from interface javax.cache.Cache
clear, close, containsKey, deregisterCacheEntryListener, get, getAll, getAndPut, getAndRemove, getAndReplace, getCacheManager, getConfiguration, getName, invoke, invokeAll, isClosed, iterator, loadAll, put, putAll, putIfAbsent, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace, unwrap
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
JCACHE_CONFIG_CACHE_NAME
The name of the Coherence NamedCache that will hold JCacheConfiguration
s.- See Also:
-
JCACHE_CONFIG_SERVICE_NAME
The name of the Coherence Service that will manageJCACHE_CONFIG_CACHE_NAME
caches.- See Also:
-
JCACHE_CONFIG_SCHEME_NAME
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAME
caches.- See Also:
-
JCACHE_CONFIG_BACK_SCHEME_NAME
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAME
back-scheme caches.- See Also:
-
JCACHE_CONFIG_BACK_SCHEME_SERVICE_NAME
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAME
back-scheme service.- See Also:
-
JCACHE_PARTITIONED_CACHE_NAME_PREFIX
The Coherence NamedCache name prefix that JCache Partitioned Caches use internally.- See Also:
-
JCACHE_PARTITIONED_CACHE_NAME_PATTERN
The name of the Coherence NamedCache onto which Partitioned JCaches will be mapped.- See Also:
-
JCACHE_PARTITIONED_SCHEME_NAME
The name of the Coherence Scheme that will manage partitioned caches.- See Also:
-
JCACHE_PARTITIONED_SERVICE_NAME
The name of the Coherence Service that will manage partitioned caches.- See Also:
-
JCACHE_LOCAL_CACHE_NAME_PREFIX
The Coherence NamedCache name prefix that JCache Local Caches will use.- See Also:
-
JCACHE_LOCAL_CACHE_NAME_PATTERN
The name of the Coherence NamedCache onto which Local JCaches will be mapped.- See Also:
-
JCACHE_LOCAL_SCHEME_NAME
The name of the Coherence Scheme that will manage Local caches.- See Also:
-
JCACHE_LOCAL_SERVICE_NAME
The name of the Coherence Service that will manage Local caches.- See Also:
-
JCACHE_EXTEND_SCHEME_NAME
- See Also:
-
JCACHE_EXTEND_SERVICE_NAME
- See Also:
-
JCACHE_EXTEND_PROXY_SERVICE_NAME
- See Also:
-
JCACHE_REMOTE_SCHEME
The name of the Coherence remote scheme for JCache.- See Also:
-
-
Method Details
-
getIdentifier
JCacheIdentifier getIdentifier()Obtain the internal identifier used for JCache caches.- Returns:
- the internal
JCacheIdentifier
-
destroy
void destroy()Destroys aCoherenceBasedCache
due to a request from aCoherenceBasedCacheManager
.
-