|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.jcache.JCacheEntry
public class JCacheEntry
An implementation of CacheEntry. A CacheEntry is metadata about an entry in the cache. It does not include the value.
| Constructor Summary | |
|---|---|
JCacheEntry(Element element)
Constructor |
|
| Method Summary | |
|---|---|
long |
getCost()
This implementation does not have a notion of cost. |
long |
getCreationTime()
Gets the creationTime attribute of the ElementAttributes object. |
long |
getExpirationTime()
Returns the expiration time based on time to live. |
int |
getHits()
Gets the hit count on this element. |
java.lang.Object |
getKey()
Returns the key corresponding to this entry. |
long |
getLastAccessTime()
Gets the last access time. |
long |
getLastUpdateTime()
Updated means there was an existing Element that was replaced with a new one, for the same key. |
java.lang.Object |
getValue()
Returns the value corresponding to this entry. |
long |
getVersion()
Returns the version of the Element. |
boolean |
isValid()
An Element is 'valid' if it is unexpired. |
java.lang.Object |
setValue(java.lang.Object value)
Replaces the value corresponding to this entry with the specified value (optional operation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map.Entry |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public JCacheEntry(Element element)
element - an element from Ehcache| Method Detail |
|---|
public java.lang.Object getKey()
throws java.lang.IllegalStateException
getKey in interface java.util.Map.Entryjava.lang.IllegalStateException - implementations may, but are not
required to, throw this exception if the entry has been
removed from the backing map
public java.lang.Object getValue()
throws java.lang.IllegalStateException
getValue in interface java.util.Map.Entryjava.lang.IllegalStateException - implementations may, but are not
required to, throw this exception if the entry has been
removed from the backing map
public java.lang.Object setValue(java.lang.Object value)
throws java.lang.UnsupportedOperationException
setValue in interface java.util.Map.Entryvalue - new value to be stored in this entry.
java.lang.UnsupportedOperationException - if the put operation
is not supported by the backing map.public long getCost()
getCost in interface net.sf.jsr107cache.CacheEntrypublic long getCreationTime()
getCreationTime in interface net.sf.jsr107cache.CacheEntrypublic long getExpirationTime()
getExpirationTime in interface net.sf.jsr107cache.CacheEntrypublic int getHits()
getHits in interface net.sf.jsr107cache.CacheEntrypublic long getLastAccessTime()
Element
will have a last access time equal to its create time.
getLastAccessTime in interface net.sf.jsr107cache.CacheEntrypublic long getLastUpdateTime()
getLastUpdateTime in interface net.sf.jsr107cache.CacheEntrypublic long getVersion()
getVersion in interface net.sf.jsr107cache.CacheEntrypublic boolean isValid()
isValid in interface net.sf.jsr107cache.CacheEntry
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||