public class JCacheContext extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
JCacheContext(JCacheIdentifier id,
javax.cache.configuration.CompleteConfiguration config)
Constructs a context for a JCache cache on each coherence storage node.
|
| Modifier and Type | Method and Description |
|---|---|
javax.cache.integration.CacheLoader |
getCacheLoader()
Return the configured CacheLoader independent if read-through is enabled or not.
|
javax.cache.integration.CacheWriter |
getCacheWriter()
If write-through is enabled, return the CacheWriter.
|
javax.cache.configuration.CompleteConfiguration |
getConfiguration()
Return the JCache cache configuration
|
static JCacheContext |
getContext(ResourceRegistry reg,
JCacheIdentifier cacheId)
Get a JCacheContext for
cacheId in ResourceRegistry |
static JCacheContext |
getContext(ResourceRegistry reg,
JCacheIdentifier cacheId,
javax.cache.configuration.CompleteConfiguration config)
Get or Create a JCacheContext for
cacheId in ResourceRegistry |
javax.cache.expiry.ExpiryPolicy |
getExpiryPolicy()
Get ExpiryPolicy
|
JCacheStatistics |
getStatistics()
Return the statistics for this storage node.
|
boolean |
isReadThrough()
Is read-through enabled.
|
static void |
unregister(ResourceRegistry reg,
JCacheIdentifier cacheId) |
protected JCacheContext(JCacheIdentifier id, javax.cache.configuration.CompleteConfiguration config)
id - JCache cache unique identifierconfig - configuration for JCache {code}id{/code}public javax.cache.expiry.ExpiryPolicy getExpiryPolicy()
public boolean isReadThrough()
public javax.cache.integration.CacheLoader getCacheLoader()
public javax.cache.integration.CacheWriter getCacheWriter()
public javax.cache.configuration.CompleteConfiguration getConfiguration()
public JCacheStatistics getStatistics()
public static JCacheContext getContext(ResourceRegistry reg, JCacheIdentifier cacheId)
cacheId in ResourceRegistryreg - Resource Registry to lookup up or create JCacheContext within.cacheId - identifier for JCacheContextJCacheContext for cache identified by cacheId or null if not registered yet.public static JCacheContext getContext(ResourceRegistry reg, JCacheIdentifier cacheId, javax.cache.configuration.CompleteConfiguration config)
cacheId in ResourceRegistryreg - Resource Registry to lookup up or create JCacheContext within.cacheId - identifier for JCacheContextconfig - JCache Configuration to associate with a new JCacheContext.JCacheContext for cache identified by cacheIdpublic static void unregister(ResourceRegistry reg, JCacheIdentifier cacheId)