org.ofbiz.base.util.cache
Class CacheLine<V>

java.lang.Object
  extended by org.ofbiz.base.util.cache.CacheLine<V>
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HardRefCacheLine, SoftRefCacheLine

public abstract class CacheLine<V>
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 long expireTime
           
 long loadTime
           
 
Constructor Summary
protected CacheLine(long expireTime)
           
protected CacheLine(long loadTime, long expireTime)
           
 
Method Summary
 long getExpireTime()
           
 long getSizeInBytes()
           
abstract  V getValue()
           
 boolean hasExpired()
           
abstract  boolean isInvalid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loadTime

public long loadTime

expireTime

public final long expireTime
Constructor Detail

CacheLine

protected CacheLine(long expireTime)

CacheLine

protected CacheLine(long loadTime,
                    long expireTime)
Method Detail

getValue

public abstract V getValue()

isInvalid

public abstract boolean isInvalid()

getExpireTime

public long getExpireTime()

getSizeInBytes

public long getSizeInBytes()

hasExpired

public boolean hasExpired()