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