Purpose: Be used for deadlock avoidance through allowing detection and resolution.
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
| protected Vector | |
| protected Vector | |
| protected boolean | |
| public static boolean | |
| protected int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public Vector | |
| public Vector | |
| public int | getThreadDepth()
Return the depth of the thread associated with the DLM, being used to release the lock |
| public boolean | |
| public void | |
| public boolean | |
| public void | |
| public void | |
| public void | setDeferredLocks(Vector<ConcurrencyManager> deferredLocks)
set a set of the deferred locks to the DLM |
| public void |
| activeLocks | back to summary |
|---|---|
| protected Vector<ConcurrencyManager> activeLocks | |
| deferredLocks | back to summary |
|---|---|
| protected Vector<ConcurrencyManager> deferredLocks | |
| isThreadComplete | back to summary |
|---|---|
| protected boolean isThreadComplete | |
| SHOULD_USE_DEFERRED_LOCKS | back to summary |
|---|---|
| public static boolean SHOULD_USE_DEFERRED_LOCKS | |
| threadDepth | back to summary |
|---|---|
| protected int threadDepth | |
| DeferredLockManager | back to summary |
|---|---|
| public DeferredLockManager() DeferredLockManager constructor comment. | |
| addActiveLock | back to summary |
|---|---|
| public void addActiveLock(Object manager) add a concurrency manager as active locks to the DLM | |
| addDeferredLock | back to summary |
|---|---|
| public void addDeferredLock(Object manager) add a concurrency manager as deferred locks to the DLM | |
| decrementDepth | back to summary |
|---|---|
| public void decrementDepth() decrement the depth of the thread | |
| getActiveLocks | back to summary |
|---|---|
| public Vector Return a set of the active locks from the DLM | |
| getDeferredLocks | back to summary |
|---|---|
| public Vector Return a set of the deferred locks | |
| getThreadDepth | back to summary |
|---|---|
| public int getThreadDepth() Return the depth of the thread associated with the DLM, being used to release the lock | |
| hasDeferredLock | back to summary |
|---|---|
| public boolean hasDeferredLock() Return if there are any deferred locks. | |
| incrementDepth | back to summary |
|---|---|
| public void incrementDepth() increment the depth of the thread | |
| isThreadComplete | back to summary |
|---|---|
| public boolean isThreadComplete() Return if the thread is complete | |
| releaseActiveLocksOnThread | back to summary |
|---|---|
| public void releaseActiveLocksOnThread() Release the active lock on the DLM | |
| setActiveLocks | back to summary |
|---|---|
| public void setActiveLocks(Vector<ConcurrencyManager> activeLocks) set a set of the active locks to the DLM | |
| setDeferredLocks | back to summary |
|---|---|
| public void setDeferredLocks(Vector<ConcurrencyManager> deferredLocks) set a set of the deferred locks to the DLM | |
| setIsThreadComplete | back to summary |
|---|---|
| public void setIsThreadComplete(boolean isThreadComplete) set if the thread is complete in the given DLM | |