Lock features with convenient functionality.
| Modifier and Type | Method and Description |
|---|---|
| public Thread | |
| public boolean | isLockedByOtherThread()
Query whether the lock is hold by the a thread other than the current thread. |
| public boolean | |
| public void | unlock(Runnable taskAfterUnlockBeforeNotify)
Execute the |
| public void |
| getOwner | back to summary |
|---|---|
public Thread getOwner()
| |
| isLockedByOtherThread | back to summary |
|---|---|
| public boolean isLockedByOtherThread() Query whether the lock is hold by the a thread other than the current thread. | |
| isOwner | back to summary |
|---|---|
| public boolean isOwner(Thread thread) Query whether the lock is hold by the given thread. | |
| unlock | back to summary |
|---|---|
| public void unlock(Runnable taskAfterUnlockBeforeNotify) Execute the Then release the lock. | |
| validateLocked | back to summary |
|---|---|
public void validateLocked() throws RuntimeException
| |