|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.engine.CacheElement<K,V>
public class CacheElement<K extends Serializable,V extends Serializable>
Generic element wrapper. Often stuffed inside another.
| Field Summary | |
|---|---|
IElementAttributes |
attr
These attributes hold information about the element and what it is allowed to do. |
String |
cacheName
The name of the cache region. |
K |
key
This is the cache key by which the value can be referenced. |
V |
val
This is the cached value, reference by the key. |
| Constructor Summary | |
|---|---|
CacheElement(String cacheName,
K key,
V val)
Constructor for the CacheElement object |
|
CacheElement(String cacheName,
K key,
V val,
IElementAttributes attrArg)
Constructor for the CacheElement object |
|
| Method Summary | |
|---|---|
String |
getCacheName()
Gets the cacheName attribute of the CacheElement object |
IElementAttributes |
getElementAttributes()
Gets the IElementAttributes attribute of the CacheElement object |
K |
getKey()
Gets the key attribute of the CacheElement object |
V |
getVal()
Gets the val attribute of the CacheElement object |
int |
hashCode()
|
void |
setElementAttributes(IElementAttributes attr)
Sets the attributes attribute of the CacheElement object |
String |
toString()
For debugging only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final String cacheName
public final K extends Serializable key
public final V extends Serializable val
public IElementAttributes attr
| Constructor Detail |
|---|
public CacheElement(String cacheName,
K key,
V val)
cacheName - key - val -
public CacheElement(String cacheName,
K key,
V val,
IElementAttributes attrArg)
cacheName - key - val - attrArg - | Method Detail |
|---|
public String getCacheName()
getCacheName in interface ICacheElement<K extends Serializable,V extends Serializable>public K getKey()
getKey in interface ICacheElement<K extends Serializable,V extends Serializable>public V getVal()
getVal in interface ICacheElement<K extends Serializable,V extends Serializable>public void setElementAttributes(IElementAttributes attr)
setElementAttributes in interface ICacheElement<K extends Serializable,V extends Serializable>attr - The new IElementAttributes valuepublic IElementAttributes getElementAttributes()
getElementAttributes in interface ICacheElement<K extends Serializable,V extends Serializable>public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||