public class DeferredLockManager
extends java.lang.Object
Purpose: Be used for deadlock avoidance through allowing detection and resolution.
Responsibilities:
Modifier and Type | Field and Description |
---|---|
static boolean |
SHOULD_USE_DEFERRED_LOCKS |
Constructor and Description |
---|
DeferredLockManager()
DeferredLockManager constructor comment.
|
Modifier and Type | Method and Description |
---|---|
void |
addActiveLock(java.lang.Object manager)
add a concurrency manager as active locks to the DLM
|
void |
addDeferredLock(java.lang.Object manager)
add a concurrency manager as deferred locks to the DLM
|
void |
decrementDepth()
decrement the depth of the thread
|
java.util.Vector |
getActiveLocks()
Return a set of the active locks from the DLM
|
java.util.Vector |
getDeferredLocks()
Return a set of the deferred locks
|
int |
getThreadDepth()
Return the depth of the thread associated with the DLM, being used to release the lock
|
boolean |
hasDeferredLock()
Return if there are any deferred locks.
|
void |
incrementDepth()
increment the depth of the thread
|
boolean |
isThreadComplete()
Return if the thread is complete
|
void |
releaseActiveLocksOnThread()
Release the active lock on the DLM
|
void |
setActiveLocks(java.util.Vector activeLocks)
set a set of the active locks to the DLM
|
void |
setDeferredLocks(java.util.Vector deferredLocks)
set a set of the deferred locks to the DLM
|
void |
setIsThreadComplete(boolean isThreadComplete)
set if the thread is complete in the given DLM
|
public DeferredLockManager()
public void addActiveLock(java.lang.Object manager)
public void addDeferredLock(java.lang.Object manager)
public void decrementDepth()
public java.util.Vector getActiveLocks()
public java.util.Vector getDeferredLocks()
public int getThreadDepth()
public boolean hasDeferredLock()
public void incrementDepth()
public boolean isThreadComplete()
public void releaseActiveLocksOnThread()
public void setActiveLocks(java.util.Vector activeLocks)
public void setDeferredLocks(java.util.Vector deferredLocks)
public void setIsThreadComplete(boolean isThreadComplete)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference