|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use CacheException | |
|---|---|
| org.apache.jcs | Contains the class JCS which provides a simple interface for clients to use JCS. |
| org.apache.jcs.access | Contains classes for accessing the cache. |
| org.apache.jcs.access.behavior | |
| org.apache.jcs.access.exception | |
| org.apache.jcs.auxiliary.remote.http.server | |
| org.apache.jcs.engine.control | The primary cache classes and the hub. |
| Uses of CacheException in org.apache.jcs |
|---|
| Methods in org.apache.jcs that throw CacheException | ||
|---|---|---|
protected static CompositeCacheManager |
JCS.getCacheManager()
Gets an instance of CompositeCacheManager and stores it in the cacheMgr class field, if it is not already set. |
|
static
|
JCS.getInstance(String region)
Get a JCS which accesses the provided region. |
|
static
|
JCS.getInstance(String region,
ICompositeCacheAttributes icca)
Get a JCS which accesses the provided region. |
|
| Uses of CacheException in org.apache.jcs.access |
|---|
| Methods in org.apache.jcs.access that throw CacheException | ||
|---|---|---|
void |
CacheAccess.clear()
Removes all of the elements from a region. |
|
static
|
CacheAccess.defineRegion(String name)
Define a new cache region with the given name. |
|
static
|
CacheAccess.defineRegion(String name,
ICompositeCacheAttributes cattr)
Define a new cache region with the specified name and attributes. |
|
static
|
CacheAccess.defineRegion(String name,
ICompositeCacheAttributes cattr,
IElementAttributes attr)
Define a new cache region with the specified name and attributes and return a CacheAccess to it. |
|
void |
CacheAccess.destroy()
Deprecated. |
|
void |
CacheAccess.destroy(K name)
Deprecated. use remove |
|
int |
PartitionedCacheAccess.freeMemoryElements(int numberToFree)
Calls free on each partition. |
|
int |
CacheAccess.freeMemoryElements(int numberToFree)
This instructs the memory cache to remove the numberToFree according to its eviction policy. |
|
static
|
CacheAccess.getAccess(String region)
Get a CacheAccess instance for the given region. |
|
static
|
CacheAccess.getAccess(String region,
ICompositeCacheAttributes icca)
Get a CacheAccess instance for the given region with the given attributes. |
|
protected static CompositeCacheManager |
CacheAccess.getCacheManager()
Helper method which checks to make sure the cacheMgr class field is set, and if not requests an instance from CacheManagerFactory. |
|
IElementAttributes |
CacheAccess.getDefaultElementAttributes()
Retrieves A COPY OF the default element attributes used by this region. |
|
IElementAttributes |
PartitionedCacheAccess.getElementAttributes()
|
|
IElementAttributes |
CacheAccess.getElementAttributes()
Deprecated. As of release 1.3 |
|
IElementAttributes |
PartitionedCacheAccess.getElementAttributes(K key)
This is no more efficient than simply getting the cache element. |
|
IElementAttributes |
CacheAccess.getElementAttributes(K name)
GetElementAttributes will return an attribute object describing the current attributes associated with the object name. |
|
static
|
GroupCacheAccess.getGroupAccess(String region)
Gets the groupAccess attribute of the GroupCacheAccess class. |
|
static
|
GroupCacheAccess.getGroupAccess(String region,
ICompositeCacheAttributes icca)
Gets the groupAccess attribute of the GroupCacheAccess class. |
|
void |
PartitionedCacheAccess.put(K key,
V object)
Puts the value into the appropriate cache partition. |
|
void |
CacheAccess.put(K name,
V obj)
Place a new object in the cache, associated with key name. |
|
void |
PartitionedCacheAccess.put(K key,
V object,
IElementAttributes attr)
Puts the value into the appropriate cache partition. |
|
void |
CacheAccess.put(K key,
V val,
IElementAttributes attr)
Constructs a cache element with these attributes, and puts it into the cache. |
|
void |
GroupCacheAccess.putInGroup(K name,
String groupName,
V value)
Allows the user to put an object into a group within a particular cache region. |
|
void |
GroupCacheAccess.putInGroup(K name,
String groupName,
V value,
IElementAttributes attr)
Allows the user to put an object into a group within a particular cache region. |
|
void |
PartitionedCacheAccess.putSafe(K key,
V object)
Puts in cache if an item does not exist with the name in that region. |
|
void |
CacheAccess.putSafe(K key,
V value)
Place a new object in the cache, associated with key name. |
|
void |
PartitionedCacheAccess.remove()
Calls remove on all partitions. |
|
void |
CacheAccess.remove()
Deprecated. use clear() |
|
void |
PartitionedCacheAccess.remove(K key)
Removes the item from the appropriate partition. |
|
void |
CacheAccess.remove(K name)
Removes a single item by name. |
|
void |
PartitionedCacheAccess.resetElementAttributes(IElementAttributes attributes)
Resets the default element attributes on all partitions. |
|
void |
CacheAccess.resetElementAttributes(IElementAttributes attr)
Deprecated. As of release 1.3 |
|
void |
PartitionedCacheAccess.resetElementAttributes(K key,
IElementAttributes attributes)
Resets the attributes for this item. |
|
void |
CacheAccess.resetElementAttributes(K name,
IElementAttributes attr)
Reset attributes for a particular element in the cache. |
|
void |
CacheAccess.setDefaultElementAttributes(IElementAttributes attr)
This method is does not reset the attributes for items already in the cache. |
|
| Uses of CacheException in org.apache.jcs.access.behavior |
|---|
| Methods in org.apache.jcs.access.behavior that throw CacheException | |
|---|---|
int |
ICacheAccess.freeMemoryElements(int numberToFree)
This instructs the memory cache to remove the numberToFree according to its eviction policy. |
IElementAttributes |
ICacheAccess.getElementAttributes()
GetElementAttributes will return an attribute object describing the current attributes associated with the object name. |
IElementAttributes |
ICacheAccess.getElementAttributes(K name)
Gets the elementAttributes attribute of the ICacheAccess object |
void |
ICacheAccess.put(K name,
V obj)
Puts and/or overrides an element with the name in that region. |
void |
ICacheAccess.put(K name,
V obj,
IElementAttributes attr)
Description of the Method |
void |
IGroupCacheAccess.putInGroup(K key,
String group,
V obj)
Puts an item in the cache associated with this group. |
void |
IGroupCacheAccess.putInGroup(K key,
String group,
V obj,
IElementAttributes attr)
Put in the cache associated with this group using these attributes. |
void |
ICacheAccess.putSafe(K name,
V obj)
Puts in cache if an item does not exist with the name in that region. |
void |
ICacheAccess.remove()
Old remove all method. |
void |
ICacheAccess.remove(K name)
Remove an object for this key if one exists, else do nothing. |
void |
ICacheAccess.resetElementAttributes(IElementAttributes attributes)
ResetAttributes allows for some of the attributes of a region to be reset in particular expiration time attributes, time to live, default time to live and idle time, and event handlers. |
void |
ICacheAccess.resetElementAttributes(K name,
IElementAttributes attributes)
Reset the attributes on the object matching this key name. |
| Uses of CacheException in org.apache.jcs.access.exception |
|---|
| Subclasses of CacheException in org.apache.jcs.access.exception | |
|---|---|
class |
ConfigurationException
Thrown if there is some severe configuration problem that makes the cache nonfunctional. |
class |
InvalidArgumentException
InvalidArgumentException is thrown if an argument is passed to the cache that is invalid. |
class |
InvalidGroupException
InvalidGroupException |
class |
InvalidHandleException
InvalidHandleException is not used. |
class |
ObjectExistsException
The putSafe method on the JCS convenience class throws this exception if the object is already present in the cache. |
class |
ObjectNotFoundException
ObjectNotFoundException TODO see if we can remove this. |
| Uses of CacheException in org.apache.jcs.auxiliary.remote.http.server |
|---|
| Methods in org.apache.jcs.auxiliary.remote.http.server that throw CacheException | |
|---|---|
protected void |
RemoteHttpCacheServlet.ensureCacheManager()
Make sure we have a cache manager. |
| Uses of CacheException in org.apache.jcs.engine.control |
|---|
| Methods in org.apache.jcs.engine.control that throw CacheException | |
|---|---|
void |
CompositeCacheManager.configure()
Configure with default properties file |
void |
CompositeCacheManager.configure(String propFile)
Configure from specific properties file. |
IElementAttributes |
CompositeCache.getElementAttributes(K key)
Gets the elementAttributes attribute of the Cache object. |
static CompositeCacheManager |
CompositeCacheManager.getInstance()
Gets the CacheHub instance. |
static CompositeCacheManager |
CompositeCacheManager.getInstance(String propsFilename)
Initializes the cache manager using the props file for the given name. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||