Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


oracle.eclipselink.coherence.integrated.internal.cache
Class ComposeIdentityMap

java.lang.Object
  extended by oracle.eclipselink.coherence.integrated.internal.cache.ComposeIdentityMap


public class ComposeIdentityMap
extends java.lang.Object

Purpose: This class is used to track all objects composed from a coherence get call. This allows us to track what objects this thread has retrieved in the case a cycle is experienced. The depth is the number of time this thread has called getFromCoherence. When depth gets to zero we should empty the thread local to prevent any leakage.

Since:
Oracle TopLink 11g (11.1.1.0.0)
Author:
gyorke

Field Summary
protected  java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.Object,java.lang.Object>> composedEntities
           
protected  int depth
           

 

Constructor Summary
ComposeIdentityMap()
           

 

Method Summary
 void addComposedEntity(java.lang.Object key, java.lang.Object object)
           
 boolean atStart()
           
 void decrementDepth()
           
 java.lang.Object getComposedEntity(java.lang.Class<?> clazz, java.lang.Object key)
           
 void incrementDepth()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

composedEntities

protected java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.Object,java.lang.Object>> composedEntities

depth

protected int depth

Constructor Detail

ComposeIdentityMap

public ComposeIdentityMap()

Method Detail

getComposedEntity

public java.lang.Object getComposedEntity(java.lang.Class<?> clazz,
                                          java.lang.Object key)
Returns:
the composedEntities

addComposedEntity

public void addComposedEntity(java.lang.Object key,
                              java.lang.Object object)
Parameters:
composedEntities - the composedEntities to set

atStart

public boolean atStart()
Returns:
true if we are back at the point in the stack where the first entity was composed.

incrementDepth

public void incrementDepth()

decrementDepth

public void decrementDepth()

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.