public interface CTBCacheService
Modifier and Type | Method and Description |
---|---|
void |
bulkload(String cacheName)
Bulkload the cache identified by a name.
|
void |
bulkload(String cacheName,
CTBCacheContext cacheContext)
Bulkload the cache identified by a name.
|
void |
createCache(CTBCacheConfig cacheConfig)
Creates a new cache.
|
Object |
get(String cacheName,
Object key)
Retrieves an object from the cache.
|
Object |
get(String cacheName,
Object key,
CTBCacheContext cacheContext)
Retrieves an object from the cache.
|
void |
invalidate(String cacheName)
Invalidates the entire cache.
|
void |
invalidate(String cacheName,
Object key)
Invalidates an object in the cache.
|
boolean |
isPresent(String cacheName,
Object key)
Determines if a key is present in the named cache.
|
Object[] |
keys(String cacheName)
Returns all keys in the named cache.
|
boolean |
update(String cacheName,
Object key,
Object newValue)
Updates an object in the cache.
|
Object[] |
values(String cacheName)
Returns all values in the named cache.
|
void createCache(CTBCacheConfig cacheConfig) throws CommonException
cacheConfig
- CTBCacheConfig
object containing configuration
information for this cache.CommonException
void bulkload(String cacheName) throws CommonException
NOTE: The cache must be preload-enabled in order to bulkload the cache.
Calling this method causes the bulkload
method of this
cache's cache loader to be called.
cacheName
- Unique name of the cache.CommonException
void bulkload(String cacheName, CTBCacheContext cacheContext) throws CommonException
oracle.hsgbu.hdr.base.fwk.server.CTBCacheLoader#bulkload(CacheContext)
method of this cache's cache loader to
be called.cacheName
- Unique name of the cache.cacheContext
- CTBCacheContext
object containing
user-provided information used by the bulkload method
in the cache loader in order to bulkload the cache.CommonException
Object get(String cacheName, Object key) throws CommonException
oracle.hsgbu.hdr.base.fwk.server.CTBCacheLoader#load(Object)
method
of the cache loader to be called if the key
does not exist in the cache in order to load the cache.cacheName
- Unique name of the cache.key
- Key to retrieve from the cache.CommonException
Object get(String cacheName, Object key, CTBCacheContext cacheContext) throws CommonException
cacheName
- Unique name of the cache.key
- Key to retrieve from the cache.cacheContext
- CTBCacheContext
object containing
user-provided information used by the load method
in the cache loader in order to load an object into the cache if
the key
is not already in the cache.CommonException
boolean update(String cacheName, Object key, Object newValue) throws CommonException
cacheName
- Unique name of the cache.key
- Key to update in the cache.newValue
- New value to update in the cache.true
if the key did exist in the cache and the object
was updated. false
if the object did not exist in the
cache and nothing was done.CommonException
CTBCacheConfig.setDistributed(boolean)
void invalidate(String cacheName) throws CommonException
cacheName
- Unique name of the cache.CommonException
CTBCacheConfig.setDistributed(boolean)
void invalidate(String cacheName, Object key) throws CommonException
cacheName
- Unique name of the cache.key
- Key of the object to invalidate.CommonException
CTBCacheConfig.setDistributed(boolean)
boolean isPresent(String cacheName, Object key) throws CommonException
cacheName
- Unique name of the cache.key
- Key of the object to check if exists in the cache.CommonException
Object[] keys(String cacheName) throws CommonException
cacheName
- Unique name of the cache.CommonException
Object[] values(String cacheName) throws CommonException
cacheName
- Unique name of the cache.CommonException
HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved