Uses of Class
org.apache.commons.jcs3.access.exception.CacheException
Packages that use CacheException
Package
Description
Contains the class JCS which provides a simple interface for clients to use JCS.
Contains classes for accessing the cache.
The primary cache classes and the hub.
-
Uses of CacheException in org.apache.commons.jcs3
Methods in org.apache.commons.jcs3 that throw CacheExceptionModifier and TypeMethodDescriptionstatic <K,
V> GroupCacheAccess<K, V> JCS.getGroupCacheInstance
(String region) Get a GroupCacheAccess which accesses the provided region.static <K,
V> GroupCacheAccess<K, V> JCS.getGroupCacheInstance
(String region, ICompositeCacheAttributes icca) Get a GroupCacheAccess which accesses the provided region.static <K,
V> GroupCacheAccess<K, V> JCS.getGroupCacheInstance
(String region, ICompositeCacheAttributes icca, IElementAttributes eattr) Get a GroupCacheAccess which accesses the provided region.static <K,
V> CacheAccess<K, V> JCS.getInstance
(String region) Get a CacheAccess which accesses the provided region.static <K,
V> CacheAccess<K, V> JCS.getInstance
(String region, ICompositeCacheAttributes icca) Get a CacheAccess which accesses the provided region.static <K,
V> CacheAccess<K, V> JCS.getInstance
(String region, ICompositeCacheAttributes icca, IElementAttributes eattr) Get a CacheAccess which accesses the provided region. -
Uses of CacheException in org.apache.commons.jcs3.access
Methods in org.apache.commons.jcs3.access that throw CacheExceptionModifier and TypeMethodDescriptionvoid
AbstractCacheAccess.clear()
Removes all of the elements from a region.int
AbstractCacheAccess.freeMemoryElements
(int numberToFree) This instructs the memory cache to remove the numberToFree according to its eviction policy.AbstractCacheAccess.getDefaultElementAttributes()
Retrieves A COPY OF the default element attributes used by this region.CacheAccess.getElementAttributes
(K name) GetElementAttributes will return an attribute object describing the current attributes associated with the object name.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
AbstractCacheAccess.setDefaultElementAttributes
(IElementAttributes attr) This method is does not reset the attributes for items already in the cache. -
Uses of CacheException in org.apache.commons.jcs3.access.behavior
Methods in org.apache.commons.jcs3.access.behavior that throw CacheExceptionModifier and TypeMethodDescriptionvoid
ICacheAccessManagement.clear()
Removes all of the elements from a region.int
ICacheAccessManagement.freeMemoryElements
(int numberToFree) This instructs the memory cache to remove the numberToFree according to its eviction policy.ICacheAccessManagement.getDefaultElementAttributes()
GetElementAttributes will return an attribute object describing the current attributes associated with the object name.ICacheAccess.getElementAttributes
(K name) Gets the elementAttributes attribute of the ICacheAccess objectvoid
Puts and/or overrides an element with the name in that region.void
ICacheAccess.put
(K name, V obj, IElementAttributes attr) Description of the Methodvoid
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
Puts in cache if an item does not exist with the name in that region.void
Remove an object for this key if one exists, else do nothing.void
ICacheAccess.resetElementAttributes
(K name, IElementAttributes attributes) Reset the attributes on the object matching this key name.void
ICacheAccessManagement.setDefaultElementAttributes
(IElementAttributes attr) This method is does not reset the attributes for items already in the cache. -
Uses of CacheException in org.apache.commons.jcs3.access.exception
Subclasses of CacheException in org.apache.commons.jcs3.access.exceptionModifier and TypeClassDescriptionclass
Thrown if there is some severe configuration problem that makes the cache nonfunctional.class
InvalidArgumentException is thrown if an argument is passed to the cache that is invalid.class
InvalidGroupExceptionclass
InvalidHandleException is not used.class
The putSafe method on the JCS convenience class throws this exception if the object is already present in the cache.class
ObjectNotFoundException -
Uses of CacheException in org.apache.commons.jcs3.engine.control
Methods in org.apache.commons.jcs3.engine.control that throw CacheExceptionModifier and TypeMethodDescriptionvoid
CompositeCacheManager.configure()
Configure with default properties filevoid
Configure from specific properties file.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.