org.codehaus.wadi.gridstate.impl
Class GCacheEntry

java.lang.Object
  extended byorg.codehaus.wadi.gridstate.impl.GCacheEntry
All Implemented Interfaces:
javax.cache.CacheEntry, Map.Entry

public class GCacheEntry
extends Object
implements javax.cache.CacheEntry


Field Summary
protected  ReadWriteLock _lock
           
protected  Object _value
           
 
Constructor Summary
GCacheEntry(Object value)
           
 
Method Summary
 void acquireReadLock()
           
 long getCost()
           
 long getCreationTime()
           
 long getExpirationTime()
           
 int getHits()
           
 Object getKey()
           
 long getLastAccessTime()
           
 long getLastUpdateTime()
           
 Object getValue()
           
 long getVersion()
           
 Sync getWriteLock()
           
 boolean isValid()
           
 void releaseReadLock()
           
 Object setValue(Object value)
           
 
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
 

Field Detail

_lock

protected ReadWriteLock _lock

_value

protected Object _value
Constructor Detail

GCacheEntry

public GCacheEntry(Object value)
Method Detail

acquireReadLock

public void acquireReadLock()

releaseReadLock

public void releaseReadLock()

getWriteLock

public Sync getWriteLock()

getHits

public int getHits()
Specified by:
getHits in interface javax.cache.CacheEntry

getLastAccessTime

public long getLastAccessTime()
Specified by:
getLastAccessTime in interface javax.cache.CacheEntry

getLastUpdateTime

public long getLastUpdateTime()
Specified by:
getLastUpdateTime in interface javax.cache.CacheEntry

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface javax.cache.CacheEntry

getExpirationTime

public long getExpirationTime()
Specified by:
getExpirationTime in interface javax.cache.CacheEntry

getVersion

public long getVersion()
Specified by:
getVersion in interface javax.cache.CacheEntry

isValid

public boolean isValid()
Specified by:
isValid in interface javax.cache.CacheEntry

getCost

public long getCost()
Specified by:
getCost in interface javax.cache.CacheEntry

getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry

setValue

public Object setValue(Object value)
Specified by:
setValue in interface Map.Entry


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.