public class CacheElement extends java.lang.Object implements ICacheElement, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
public final java.lang.String cacheName
public final java.io.Serializable key
public final java.io.Serializable val
public IElementAttributes attr
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
- public java.lang.String getCacheName()
getCacheName
in interface ICacheElement
public java.io.Serializable getKey()
getKey
in interface ICacheElement
public java.io.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 java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.