groovyx.gpars.extra166y
Class CustomConcurrentHashMap.SoftKeyNode

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.SoftReference
          extended by groovyx.gpars.extra166y.CustomConcurrentHashMap.SoftKeyNode
All Implemented Interfaces:
CustomConcurrentHashMap.Node, CustomConcurrentHashMap.Reclaimable
Direct Known Subclasses:
CustomConcurrentHashMap.SoftKeyIntValueNode, CustomConcurrentHashMap.SoftKeySelfValueNode, CustomConcurrentHashMap.SoftKeySoftValueNode, CustomConcurrentHashMap.SoftKeyStrongValueNode, CustomConcurrentHashMap.SoftKeyWeakValueNode
Enclosing class:
CustomConcurrentHashMap<K,V>

abstract static class CustomConcurrentHashMap.SoftKeyNode
extends java.lang.ref.SoftReference
implements CustomConcurrentHashMap.Node


Field Summary
(package private)  CustomConcurrentHashMap cchm
           
(package private)  int locator
           
 
Constructor Summary
CustomConcurrentHashMap.SoftKeyNode(int locator, java.lang.Object key, CustomConcurrentHashMap cchm)
           
 
Method Summary
 int getLocator()
          Returns the locator established during the creation of this node.
 void onReclamation()
          The action taken upon removal of this object from a ReferenceQueue.
 
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 groovyx.gpars.extra166y.CustomConcurrentHashMap.Node
get, getLinkage, getValue, setLinkage, setValue
 

Field Detail

locator

final int locator

cchm

final CustomConcurrentHashMap cchm
Constructor Detail

CustomConcurrentHashMap.SoftKeyNode

CustomConcurrentHashMap.SoftKeyNode(int locator,
                                    java.lang.Object key,
                                    CustomConcurrentHashMap cchm)
Method Detail

getLocator

public final int getLocator()
Description copied from interface: CustomConcurrentHashMap.Node
Returns the locator established during the creation of this node.

Specified by:
getLocator in interface CustomConcurrentHashMap.Node
Returns:
the locator

onReclamation

public final void onReclamation()
Description copied from interface: CustomConcurrentHashMap.Reclaimable
The action taken upon removal of this object from a ReferenceQueue.

Specified by:
onReclamation in interface CustomConcurrentHashMap.Reclaimable

Copyright © 2008–2012 Václav Pech. All Rights Reserved.