Package aQute.bnd.build
Class WorkspaceLock
java.lang.Object
java.util.concurrent.locks.ReentrantReadWriteLock
aQute.bnd.build.WorkspaceLock
- All Implemented Interfaces:
Serializable,ReadWriteLock
ReentrantReadWriteLock lock for serializing access to the Workspace.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.locks.ReentrantReadWriteLock
ReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final AtomicIntegerprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CancellationExceptionprivate Stringprivate Throwable(package private) <T> Tlocked(Lock lock, long timeoutInMs, Callable<T> callable, BooleanSupplier canceled) private TimeoutExceptionprivate voidprivate StringMethods inherited from class java.util.concurrent.locks.ReentrantReadWriteLock
getOwner, getQueuedReaderThreads, getQueuedThreads, getQueuedWriterThreads, getQueueLength, getReadHoldCount, getReadLockCount, getWaitingThreads, getWaitQueueLength, getWriteHoldCount, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isWriteLocked, isWriteLockedByCurrentThread, readLock, toString, writeLock
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
private static final org.slf4j.Logger logger -
progress
-
-
Constructor Details
-
WorkspaceLock
WorkspaceLock(boolean fair)
-
-
Method Details
-
type
-
trace
-
getOwnerCause
-
dumpAllThreads
-
canceled
-
timeout
-
locked
<T> T locked(Lock lock, long timeoutInMs, Callable<T> callable, BooleanSupplier canceled) throws Exception - Throws:
Exception
-