com.ibm.websphere.cache
Interface Cache
Deprecated. Use DistributedMap to store and manage objects in cache. DynamicCacheAccessor#getDistributedMap will return a DistributedMap for accessing base cache.
- public interface Cache
See Also:
Method Summary
Modifier and Type | Method and Description |
---|---|
|
clear()
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getAllDependencyIds()
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getAllIds()
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getCacheIdsByDependency(java.lang.String dependency)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getCacheIdsByTemplate(java.lang.String template)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getDefaultPriority()
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
getEntry(EntryInfo entryInfo)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getEntry(java.lang.String id)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
|
getMaxNumberCacheEntries()
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getNumberCacheEntries()
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getValue(EntryInfo entryInfo,boolean askPermission)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getValue(java.lang.Object id,boolean askPermission)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
getValue(java.lang.String id,boolean askPermission)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
invalidateById(java.lang.String id,boolean waitOnInvalidation)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
|
invalidateByTemplate(java.lang.String template,boolean waitOnInvalidation)
Deprecated. Use DistributedMap to store and manage objects
in cache.
|
Method Detail
getEntry
- CacheEntry getEntry(EntryInfo entryInfo)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This returns the cache entry identified by
the specified entry info. It returns null
if not in the cache.
Parameters:
entryInfo
- The entry info object for the entry to be found.
It cannot be null. Returns:
The entry indentified by the cache id.
See Also:
getEntry
- CacheEntry getEntry(java.lang.String id)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This returns the cache entry identified by the
specified cache id. It returns null if not in
the cache.
Parameters:
id
- The cache id object for the entry to be found.
It cannot be null. Returns:
The entry indentified by the cache id.
See Also:
getValue
- java.lang.Object getValue(EntryInfo entryInfo,
- boolean askPermission)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This tries to find a value in the cache.
If it is not there, it will try to execute it.
Parameters:
entryInfo
- The entry info object for the entry to be found.
It cannot be null. askPermission
- True implies that execution must ask the
coordinating CacheUnit for permission. Returns:
Value of the cache entry idetified by the entry
info.
See Also:
getValue
- java.lang.Object getValue(java.lang.String id,
- boolean askPermission)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method tries to find a value in the cache.
If it is not there, it will try to execute it.
Parameters:
id
- The cache id for the entry to be found. It cannot be null. askPermission
- True implies that execution must ask the
coordinating CacheUnit for permission. See Also:
getValue
- java.lang.Object getValue(java.lang.Object id,
- boolean askPermission)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method tries to find a value in the cache.
If it is not there, it will try to execute it.
Parameters:
id
- The cache id for the entry to be found. It cannot be null. askPermission
- True implies that execution must ask the
coordinating CacheUnit for permission. See Also:
invalidateById
- void invalidateById(java.lang.String id,
- boolean waitOnInvalidation)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method invalidates in all caches all entries dependent on the specified
id.
Parameters:
id
- The cache id or data id. waitOnInvalidation
- True indicates that this method should
not return until the invalidations have taken effect on all caches.
False indicates that the invalidations will be queued for later
batch processing. See Also:
invalidateByTemplate
- void invalidateByTemplate(java.lang.String template,
- boolean waitOnInvalidation)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method invalidates in all caches all entries dependent on the specified
template.
Parameters:
template
- The template name. waitOnInvalidation
- True indicates that this method should
not return until the invalidations have taken effect on all caches.
False indicates that the invalidations will be queued for later
batch processing. See Also:
clear
- void clear()
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method clears everything from the cache,
so that it is just like when it was instantiated.
See Also:
getAllIds
- java.util.Enumeration getAllIds( )
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method returns the cache ids for all cache entries.
getMaxNumberCacheEntries
- int getMaxNumberCacheEntries()
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method gets the maximum number of cache entries.
getNumberCacheEntries
- int getNumberCacheEntries()
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method gets the current number of cache entries.
getDefaultPriority
- int getDefaultPriority()
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method gets the default priority value as set in the Admin GUI/dynacache.xml file.
getAllDependencyIds
- java.util.Collection getAllDependencyIds( )
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method returns the dependency ids for all cache entries.
getCacheIdsByDependency
- java.util.Collection getCacheIdsByDependency( java.lang.String dependency)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method returns the cache ids of the entries dependent on the dependency id
passed as a parameter or null if no entry depends on it.
Parameters:
dependency
- ID for which Cache IDs are needed. Returns:
A Collection of cache IDs or null.
See Also:
getCacheIdsByTemplate
- java.util.Collection getCacheIdsByTemplate( java.lang.String template)
Deprecated. Use DistributedMap to store and manage objects
in cache.
This method returns the cache ids of the entries that have the template
passed as a parameter or null if no entry has this template.
Parameters:
template
- for which Cache IDs are needed. Returns:
A Collection of cache IDs or null.
See Also: