Skip navigation links
oracle.eclipselink.coherence.integrated.internal.cache
Class ComposeIdentityMap
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
composedEntities
protected java.util.Map<java.lang.Class<?>,java.util.Map<java.lang.Object,java.lang.Object>> composedEntities
depth
protected int depth
ComposeIdentityMap
public ComposeIdentityMap()
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