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

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

public final class SoftRefCacheLine<V>
extends CacheLine<V>

See Also:
Serialized Form

Field Summary
 CacheSoftReference<V> ref
           
 
Fields inherited from class org.ofbiz.base.util.cache.CacheLine
expireTime, loadTime
 
Constructor Summary
SoftRefCacheLine(V value, long expireTime)
           
SoftRefCacheLine(V value, long loadTime, long expireTime)
           
 
Method Summary
 V getValue()
           
 boolean isInvalid()
           
 
Methods inherited from class org.ofbiz.base.util.cache.CacheLine
getExpireTime, getSizeInBytes, hasExpired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

public final CacheSoftReference<V> ref
Constructor Detail

SoftRefCacheLine

public SoftRefCacheLine(V value,
                        long expireTime)

SoftRefCacheLine

public SoftRefCacheLine(V value,
                        long loadTime,
                        long expireTime)
Method Detail

getValue

public V getValue()
Specified by:
getValue in class CacheLine<V>

isInvalid

public boolean isInvalid()
Specified by:
isInvalid in class CacheLine<V>