groovyx.gpars.extra166y
Class CustomConcurrentHashMap.WeakKeyNode

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference
          extended by groovyx.gpars.extra166y.CustomConcurrentHashMap.WeakKeyNode
All Implemented Interfaces:
CustomConcurrentHashMap.Node, CustomConcurrentHashMap.Reclaimable
Direct Known Subclasses:
CustomConcurrentHashMap.WeakKeyIntValueNode, CustomConcurrentHashMap.WeakKeySelfValueNode, CustomConcurrentHashMap.WeakKeySoftValueNode, CustomConcurrentHashMap.WeakKeyStrongValueNode, CustomConcurrentHashMap.WeakKeyWeakValueNode
Enclosing class:
CustomConcurrentHashMap<K,V>

abstract static class CustomConcurrentHashMap.WeakKeyNode
extends java.lang.ref.WeakReference
implements CustomConcurrentHashMap.Node


Field Summary
(package private)  CustomConcurrentHashMap cchm
           
(package private)  int locator
           
 
Constructor Summary
CustomConcurrentHashMap.WeakKeyNode(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.Reference
clear, enqueue, get, 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.WeakKeyNode

CustomConcurrentHashMap.WeakKeyNode(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.