Package nl.vpro.util.locker
Class ObjectLocker.LockHolder<K>
java.lang.Object
nl.vpro.util.locker.ObjectLocker.LockHolder<K>
- Enclosing class:
- ObjectLocker
Most importantly this is a wrapper around
ReentrantLock
, but it stores some extra meta information, like the original key, thread, and initialization time.
It can also store the exception if that happened during the hold of the lock.
-
Field Summary
-
Method Summary
-
Field Details
-
key
-
lock
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getAge
- Since:
- 5.13
-
summarize
-
summarize
-
toString
-
disable
public void disable(boolean interrupt) -
isDisabled
public boolean isDisabled() -
getWarnTime
-
setWarnTime
-