Top Description Fields Constructors Methods
org.eclipse.persistence.internal.helper

public Class DeferredLockManager

extends Object
Class Inheritance
Imports
java.util.*

INTERNAL:

Purpose: Be used for deadlock avoidance through allowing detection and resolution.

Responsibilities:

Field Summary

Modifier and TypeField and Description
protected Vector<ConcurrencyManager>
protected Vector<ConcurrencyManager>
protected boolean
public static boolean
protected int

Constructor Summary

AccessConstructor and Description
public
DeferredLockManager()

DeferredLockManager constructor comment.

Method Summary

Modifier and TypeMethod and Description
public void
addActiveLock(Object manager)

add a concurrency manager as active locks to the DLM

public void
addDeferredLock(Object manager)

add a concurrency manager as deferred locks to the DLM

public void
decrementDepth()

decrement the depth of the thread

public Vector<ConcurrencyManager>
getActiveLocks()

Return a set of the active locks from the DLM

public Vector<ConcurrencyManager>
getDeferredLocks()

Return a set of the deferred locks

public int
getThreadDepth()

Return the depth of the thread associated with the DLM, being used to release the lock

public boolean
hasDeferredLock()

Return if there are any deferred locks.

public void
incrementDepth()

increment the depth of the thread

public boolean
isThreadComplete()

Return if the thread is complete

public void
releaseActiveLocksOnThread()

Release the active lock on the DLM

public void
setActiveLocks(Vector<ConcurrencyManager> activeLocks)

set a set of the active locks to the DLM

public void
setDeferredLocks(Vector<ConcurrencyManager> deferredLocks)

set a set of the deferred locks to the DLM

public void
setIsThreadComplete(boolean isThreadComplete)

set if the thread is complete in the given DLM

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activeLocksback to summary
protected Vector<ConcurrencyManager> activeLocks
deferredLocksback to summary
protected Vector<ConcurrencyManager> deferredLocks
isThreadCompleteback to summary
protected boolean isThreadComplete
SHOULD_USE_DEFERRED_LOCKSback to summary
public static boolean SHOULD_USE_DEFERRED_LOCKS
threadDepthback to summary
protected int threadDepth

Constructor Detail

DeferredLockManagerback to summary
public DeferredLockManager()

DeferredLockManager constructor comment.

Method Detail

addActiveLockback to summary
public void addActiveLock(Object manager)

add a concurrency manager as active locks to the DLM

addDeferredLockback to summary
public void addDeferredLock(Object manager)

add a concurrency manager as deferred locks to the DLM

decrementDepthback to summary
public void decrementDepth()

decrement the depth of the thread

getActiveLocksback to summary
public Vector<ConcurrencyManager> getActiveLocks()

Return a set of the active locks from the DLM

getDeferredLocksback to summary
public Vector<ConcurrencyManager> getDeferredLocks()

Return a set of the deferred locks

getThreadDepthback to summary
public int getThreadDepth()

Return the depth of the thread associated with the DLM, being used to release the lock

hasDeferredLockback to summary
public boolean hasDeferredLock()

Return if there are any deferred locks.

incrementDepthback to summary
public void incrementDepth()

increment the depth of the thread

isThreadCompleteback to summary
public boolean isThreadComplete()

Return if the thread is complete

releaseActiveLocksOnThreadback to summary
public void releaseActiveLocksOnThread()

Release the active lock on the DLM

setActiveLocksback to summary
public void setActiveLocks(Vector<ConcurrencyManager> activeLocks)

set a set of the active locks to the DLM

setDeferredLocksback to summary
public void setDeferredLocks(Vector<ConcurrencyManager> deferredLocks)

set a set of the deferred locks to the DLM

setIsThreadCompleteback to summary
public void setIsThreadComplete(boolean isThreadComplete)

set if the thread is complete in the given DLM