Package com.tangosol.coherence.jcache
Interface CoherenceBasedCache<K,V>
-
- Type Parameters:
K- the type of keys for theCacheV- 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 aCache.All Coherence-based implementations of
Cacheshould implement this interface.- Since:
- Coherence 12.1.3
- Author:
- bo 2013.11.04
-
-
Field Summary
Fields Modifier and Type Field Description static StringJCACHE_CONFIG_BACK_SCHEME_NAMEThe name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAMEback-scheme caches.static StringJCACHE_CONFIG_BACK_SCHEME_SERVICE_NAMEThe name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAMEback-scheme service.static StringJCACHE_CONFIG_CACHE_NAMEThe name of the Coherence NamedCache that will hold JCacheConfigurations.static StringJCACHE_CONFIG_SCHEME_NAMEThe name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAMEcaches.static StringJCACHE_CONFIG_SERVICE_NAMEThe name of the Coherence Service that will manageJCACHE_CONFIG_CACHE_NAMEcaches.static StringJCACHE_EXTEND_PROXY_SERVICE_NAMEstatic StringJCACHE_EXTEND_SCHEME_NAMEstatic StringJCACHE_EXTEND_SERVICE_NAMEstatic StringJCACHE_LOCAL_CACHE_NAME_PATTERNThe name of the Coherence NamedCache onto which Local JCaches will be mapped.static StringJCACHE_LOCAL_CACHE_NAME_PREFIXThe Coherence NamedCache name prefix that JCache Local Caches will use.static StringJCACHE_LOCAL_SCHEME_NAMEThe name of the Coherence Scheme that will manage Local caches.static StringJCACHE_LOCAL_SERVICE_NAMEThe name of the Coherence Service that will manage Local caches.static StringJCACHE_PARTITIONED_CACHE_NAME_PATTERNThe name of the Coherence NamedCache onto which Partitioned JCaches will be mapped.static StringJCACHE_PARTITIONED_CACHE_NAME_PREFIXThe Coherence NamedCache name prefix that JCache Partitioned Caches use internally.static StringJCACHE_PARTITIONED_SCHEME_NAMEThe name of the Coherence Scheme that will manage partitioned caches.static StringJCACHE_PARTITIONED_SERVICE_NAMEThe name of the Coherence Service that will manage partitioned caches.static StringJCACHE_REMOTE_SCHEMEThe name of the Coherence remote scheme for JCache.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Destroys aCoherenceBasedCachedue to a request from aCoherenceBasedCacheManager.JCacheIdentifiergetIdentifier()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 Detail
-
JCACHE_CONFIG_CACHE_NAME
static final String JCACHE_CONFIG_CACHE_NAME
The name of the Coherence NamedCache that will hold JCacheConfigurations.- See Also:
- Constant Field Values
-
JCACHE_CONFIG_SERVICE_NAME
static final String JCACHE_CONFIG_SERVICE_NAME
The name of the Coherence Service that will manageJCACHE_CONFIG_CACHE_NAMEcaches.- See Also:
- Constant Field Values
-
JCACHE_CONFIG_SCHEME_NAME
static final String JCACHE_CONFIG_SCHEME_NAME
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAMEcaches.- See Also:
- Constant Field Values
-
JCACHE_CONFIG_BACK_SCHEME_NAME
static final String JCACHE_CONFIG_BACK_SCHEME_NAME
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAMEback-scheme caches.- See Also:
- Constant Field Values
-
JCACHE_CONFIG_BACK_SCHEME_SERVICE_NAME
static final String JCACHE_CONFIG_BACK_SCHEME_SERVICE_NAME
The name of the Coherence Scheme that will manageJCACHE_CONFIG_CACHE_NAMEback-scheme service.- See Also:
- Constant Field Values
-
JCACHE_PARTITIONED_CACHE_NAME_PREFIX
static final String JCACHE_PARTITIONED_CACHE_NAME_PREFIX
The Coherence NamedCache name prefix that JCache Partitioned Caches use internally.- See Also:
- Constant Field Values
-
JCACHE_PARTITIONED_CACHE_NAME_PATTERN
static final String JCACHE_PARTITIONED_CACHE_NAME_PATTERN
The name of the Coherence NamedCache onto which Partitioned JCaches will be mapped.- See Also:
- Constant Field Values
-
JCACHE_PARTITIONED_SCHEME_NAME
static final String JCACHE_PARTITIONED_SCHEME_NAME
The name of the Coherence Scheme that will manage partitioned caches.- See Also:
- Constant Field Values
-
JCACHE_PARTITIONED_SERVICE_NAME
static final String JCACHE_PARTITIONED_SERVICE_NAME
The name of the Coherence Service that will manage partitioned caches.- See Also:
- Constant Field Values
-
JCACHE_LOCAL_CACHE_NAME_PREFIX
static final String JCACHE_LOCAL_CACHE_NAME_PREFIX
The Coherence NamedCache name prefix that JCache Local Caches will use.- See Also:
- Constant Field Values
-
JCACHE_LOCAL_CACHE_NAME_PATTERN
static final String JCACHE_LOCAL_CACHE_NAME_PATTERN
The name of the Coherence NamedCache onto which Local JCaches will be mapped.- See Also:
- Constant Field Values
-
JCACHE_LOCAL_SCHEME_NAME
static final String JCACHE_LOCAL_SCHEME_NAME
The name of the Coherence Scheme that will manage Local caches.- See Also:
- Constant Field Values
-
JCACHE_LOCAL_SERVICE_NAME
static final String JCACHE_LOCAL_SERVICE_NAME
The name of the Coherence Service that will manage Local caches.- See Also:
- Constant Field Values
-
JCACHE_EXTEND_SCHEME_NAME
static final String JCACHE_EXTEND_SCHEME_NAME
- See Also:
- Constant Field Values
-
JCACHE_EXTEND_SERVICE_NAME
static final String JCACHE_EXTEND_SERVICE_NAME
- See Also:
- Constant Field Values
-
JCACHE_EXTEND_PROXY_SERVICE_NAME
static final String JCACHE_EXTEND_PROXY_SERVICE_NAME
- See Also:
- Constant Field Values
-
JCACHE_REMOTE_SCHEME
static final String JCACHE_REMOTE_SCHEME
The name of the Coherence remote scheme for JCache.- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdentifier
JCacheIdentifier getIdentifier()
Obtain the internal identifier used for JCache caches.- Returns:
- the internal
JCacheIdentifier
-
destroy
void destroy()
Destroys aCoherenceBasedCachedue to a request from aCoherenceBasedCacheManager.
-
-