Schnittstelle IRWLockManager<OBJECT,CONTEXT>
- Alle bekannten Unterschnittstellen:
IRWOLockManager<OBJECT,CONTEXT>
- Alle bekannten Implementierungsklassen:
RWLockManager,RWOLockManager
public interface IRWLockManager<OBJECT,CONTEXT>
Support Multiple reads/no write and upgrade lock from read to write. Many context could request
write lock at the same time. It will privileges first context that has already a
read lock. If no one has any read lock, it's "first come first serve".- Seit:
- 3.0
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanhasLock(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock) booleanhasLockByOthers(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock) voidlock(IRWLockManager.LockType type, CONTEXT context, Collection<? extends OBJECT> objectsToLock, long timeout) voidlock(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock, long timeout) voidAttempts to release all locks(read and write) for a given context.voidunlock(IRWLockManager.LockType type, CONTEXT context, Collection<? extends OBJECT> objectsToUnlock) Attempts to release for a given lock type, context and objects.
-
Felddetails
-
WAIT
Veraltet.- Siehe auch:
-
NO_WAIT
Veraltet.- Siehe auch:
-
-
Methodendetails
-
lock
void lock(IRWLockManager.LockType type, CONTEXT context, Collection<? extends OBJECT> objectsToLock, long timeout) throws InterruptedException - Löst aus:
InterruptedException
-
lock
void lock(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock, long timeout) throws InterruptedException - Löst aus:
InterruptedException
-
unlock
void unlock(IRWLockManager.LockType type, CONTEXT context, Collection<? extends OBJECT> objectsToUnlock) Attempts to release for a given lock type, context and objects.- Löst aus:
IllegalMonitorStateException- Unlocking objects without lock.
-
unlock
Attempts to release all locks(read and write) for a given context. -
hasLock
-
hasLockByOthers
-