org.apache.ojb.broker.cache
Class ObjectCacheDefaultImpl.CacheEntrySoft

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.SoftReference
          extended by org.apache.ojb.broker.cache.ObjectCacheDefaultImpl.CacheEntrySoft
All Implemented Interfaces:
ObjectCacheDefaultImpl.CacheEntry
Enclosing class:
ObjectCacheDefaultImpl

static final class ObjectCacheDefaultImpl.CacheEntrySoft
extends SoftReference
implements ObjectCacheDefaultImpl.CacheEntry


Field Summary
private  long lifetime
           
private  Identity oid
           
 
Constructor Summary
ObjectCacheDefaultImpl.CacheEntrySoft(Object object, Identity k, ReferenceQueue q, long timeout)
           
 
Method Summary
 long getLifetime()
           
 Identity getOid()
           
 
Methods inherited from class java.lang.ref.SoftReference
get
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ojb.broker.cache.ObjectCacheDefaultImpl.CacheEntry
get
 

Field Detail

lifetime

private final long lifetime

oid

private final Identity oid
Constructor Detail

ObjectCacheDefaultImpl.CacheEntrySoft

ObjectCacheDefaultImpl.CacheEntrySoft(Object object,
                                      Identity k,
                                      ReferenceQueue q,
                                      long timeout)
Method Detail

getOid

public Identity getOid()
Specified by:
getOid in interface ObjectCacheDefaultImpl.CacheEntry

getLifetime

public long getLifetime()
Specified by:
getLifetime in interface ObjectCacheDefaultImpl.CacheEntry


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.