org.codehaus.groovy.runtime.metaclass
Class MemoryAwareConcurrentReadMap.SoftRef

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.SoftReference
          extended by org.codehaus.groovy.runtime.metaclass.MemoryAwareConcurrentReadMap.SoftRef
All Implemented Interfaces:
MemoryAwareConcurrentReadMap.Reference
Enclosing class:
MemoryAwareConcurrentReadMap

private static class MemoryAwareConcurrentReadMap.SoftRef
extends java.lang.ref.SoftReference
implements MemoryAwareConcurrentReadMap.Reference

A SoftReference representing a key or value of the map. The instance keeps a pointer to the entry it is sotring a key or value for. This is used to identify the entry we need to remove

See Also:
CopyOfMemoryAwareConcurrentReadMap#expungeStaleEntries()

Field Summary
private  MemoryAwareConcurrentReadMap.Entry entry
           
 
Constructor Summary
MemoryAwareConcurrentReadMap.SoftRef(MemoryAwareConcurrentReadMap.Entry e, java.lang.Object v, java.lang.ref.ReferenceQueue q)
           
 
Method Summary
 void clear()
           
 
Methods inherited from class java.lang.ref.SoftReference
get
 
Methods inherited from class java.lang.ref.Reference
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.codehaus.groovy.runtime.metaclass.MemoryAwareConcurrentReadMap.Reference
get
 

Field Detail

entry

private volatile MemoryAwareConcurrentReadMap.Entry entry
Constructor Detail

MemoryAwareConcurrentReadMap.SoftRef

public MemoryAwareConcurrentReadMap.SoftRef(MemoryAwareConcurrentReadMap.Entry e,
                                            java.lang.Object v,
                                            java.lang.ref.ReferenceQueue q)
Method Detail

clear

public void clear()
Overrides:
clear in class java.lang.ref.Reference


Copyright © ${year} The Codehaus. All Rights Reserved.