|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.engine.CacheElement
public class CacheElement
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. |
java.lang.String |
cacheName
The name of the cache region. |
java.io.Serializable |
key
This is the cache key by which the value can be referenced. |
java.io.Serializable |
val
This is the cached value, reference by the key. |
| Constructor Summary | |
|---|---|
CacheElement(java.lang.String cacheName,
java.io.Serializable key,
java.lang.Object val)
Constructor for the CacheElement object |
|
CacheElement(java.lang.String cacheName,
java.io.Serializable key,
java.io.Serializable val)
Constructor for the CacheElement object |
|
CacheElement(java.lang.String cacheName,
java.io.Serializable key,
java.io.Serializable val,
IElementAttributes attrArg)
Constructor for the CacheElement object |
|
| Method Summary | |
|---|---|
java.lang.String |
getCacheName()
Gets the cacheName attribute of the CacheElement object |
IElementAttributes |
getElementAttributes()
Gets the IElementAttributes attribute of the CacheElement object |
java.io.Serializable |
getKey()
Gets the key attribute of the CacheElement object |
java.io.Serializable |
getVal()
Gets the val attribute of the CacheElement object |
int |
hashCode()
|
void |
setElementAttributes(IElementAttributes attr)
Sets the attributes attribute of the CacheElement object |
java.lang.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 java.lang.String cacheName
public final java.io.Serializable key
public final java.io.Serializable val
public IElementAttributes attr
| Constructor Detail |
|---|
public CacheElement(java.lang.String cacheName,
java.io.Serializable key,
java.io.Serializable val)
cacheName - key - val -
public CacheElement(java.lang.String cacheName,
java.io.Serializable key,
java.io.Serializable val,
IElementAttributes attrArg)
cacheName - key - val - attrArg -
public CacheElement(java.lang.String cacheName,
java.io.Serializable key,
java.lang.Object val)
cacheName - key - val - | Method Detail |
|---|
public java.lang.String getCacheName()
getCacheName in interface ICacheElementpublic java.io.Serializable getKey()
getKey in interface ICacheElementpublic java.io.Serializable getVal()
getVal in interface ICacheElementpublic void setElementAttributes(IElementAttributes attr)
setElementAttributes in interface ICacheElementattr - The new IElementAttributes valuepublic IElementAttributes getElementAttributes()
getElementAttributes in interface ICacheElementpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||