Class ConcurrentPool
- java.lang.Object
-
- org.apache.derby.impl.services.locks.AbstractPool
-
- org.apache.derby.impl.services.locks.ConcurrentPool
-
- All Implemented Interfaces:
LockFactory
,PropertySetCallback
public final class ConcurrentPool extends AbstractPool
ALockFactory
which allows multiple threads to enter without blocking each other out.
-
-
Field Summary
-
Fields inherited from class org.apache.derby.impl.services.locks.AbstractPool
deadlockMonitor, lockTable
-
-
Constructor Summary
Constructors Constructor Description ConcurrentPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LockTable
createLockTable()
Create theConcurrentLockSet
object that keeps the locks.-
Methods inherited from class org.apache.derby.impl.services.locks.AbstractPool
anyoneBlocked, apply, areLocksHeld, areLocksHeld, clearLimit, createCompatibilitySpace, getWaitTimeout, init, isLockHeld, lockObject, makeVirtualLockTable, map, noLockWait, setLimit, transfer, unlock, unlockGroup, unlockGroup, validate, zeroDurationlockObject
-
-
-
-
Method Detail
-
createLockTable
protected LockTable createLockTable()
Create theConcurrentLockSet
object that keeps the locks.- Specified by:
createLockTable
in classAbstractPool
- Returns:
- a
ConcurrentLockSet
-
-