Interface ICacheElement<K,V>
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ICacheElementSerialized<K,
V>
- All Known Implementing Classes:
CacheElement
,CacheElementSerialized
,PurgatoryElement
Every item is the cache is wrapped in an ICacheElement. This contains
information about the element: the region name, the key, the value, and the
element attributes.
The element attributes have lots of useful information about each element, such as when they were created, how long they have to live, and if they are allowed to be spooled, etc.
-
Method Summary
Modifier and TypeMethodDescriptionGets the cacheName attribute of the ICacheElement<K, V> object.Gets the attributes attribute of the ICacheElement<K, V> objectgetKey()
Gets the key attribute of the ICacheElement<K, V> objectgetVal()
Gets the val attribute of the ICacheElement<K, V> objectvoid
Sets the attributes attribute of the ICacheElement<K, V> object
-
Method Details
-
getCacheName
Gets the cacheName attribute of the ICacheElement<K, V> object. The cacheName is also known as the region name.- Returns:
- The cacheName value
-
getKey
Gets the key attribute of the ICacheElement<K, V> object- Returns:
- The key value
-
getVal
Gets the val attribute of the ICacheElement<K, V> object- Returns:
- The val value
-
getElementAttributes
Gets the attributes attribute of the ICacheElement<K, V> object- Returns:
- The attributes value
-
setElementAttributes
Sets the attributes attribute of the ICacheElement<K, V> object- Parameters:
attr
- The new attributes value
-