Package fr.becpg.util
Class MutexFactory.JobLockWrapper
java.lang.Object
java.util.concurrent.locks.ReentrantLock
fr.becpg.util.MutexFactory.JobLockWrapper
- All Implemented Interfaces:
Serializable,Lock
- Enclosing class:
- MutexFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.alfresco.service.namespace.QNameprivate Stringprivate static final long -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.locks.ReentrantLock
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lockInterruptibly, newCondition, toString, tryLock
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
lockToken
-
lockQName
private org.alfresco.service.namespace.QName lockQName
-
-
Constructor Details
-
JobLockWrapper
-
-
Method Details
-
lock
public void lock()- Specified by:
lockin interfaceLock- Overrides:
lockin classReentrantLock
-
tryLock
public boolean tryLock()- Specified by:
tryLockin interfaceLock- Overrides:
tryLockin classReentrantLock
-
unlock
public void unlock()- Specified by:
unlockin interfaceLock- Overrides:
unlockin classReentrantLock
-