public interface ICacheAccessManagement
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all of the elements from a region.
|
void |
dispose()
Dispose this region.
|
int |
freeMemoryElements(int numberToFree)
This instructs the memory cache to remove the numberToFree according to its eviction
policy.
|
ICompositeCacheAttributes |
getCacheAttributes()
Gets the ICompositeCacheAttributes of the cache region
|
IElementAttributes |
getDefaultElementAttributes()
GetElementAttributes will return an attribute object describing the current attributes
associated with the object name.
|
ICacheStats |
getStatistics()
This returns the ICacheStats object with information on this region and its auxiliaries.
|
String |
getStats() |
void |
setCacheAttributes(ICompositeCacheAttributes cattr)
Sets the ICompositeCacheAttributes of the cache region
|
void |
setDefaultElementAttributes(IElementAttributes attr)
This method is does not reset the attributes for items already in the cache.
|
void dispose()
To simply remove all elements from the region use clear().
void clear() throws CacheException
CacheException
IElementAttributes getDefaultElementAttributes() throws CacheException
CacheException
void setDefaultElementAttributes(IElementAttributes attr) throws CacheException
attr
- the default attributes.CacheException
- if something goes wrong.ICompositeCacheAttributes getCacheAttributes()
void setCacheAttributes(ICompositeCacheAttributes cattr)
cattr
- The new ICompositeCacheAttribute valueint freeMemoryElements(int numberToFree) throws CacheException
numberToFree
- CacheException
ICacheStats getStatistics()
This data can be formatted as needed.
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.