org.kuali.rice.core.util
Class MaxAgeSoftReference<T>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.SoftReference<T>
org.kuali.rice.core.util.MaxAgeSoftReference<T>
public class MaxAgeSoftReference<T>
- extends SoftReference<T>
An extension to SoftReference that stores an expiration time for the
value stored in the SoftReference. If no expiration time is passed in
the value will never be cached.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expires
private long expires
MaxAgeSoftReference
public MaxAgeSoftReference(long expires,
T referent)
isValid
public boolean isValid()
get
public T get()
- Overrides:
get in class SoftReference<T>
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.