Class RWLockManager<OBJECT,CONTEXT>
- java.lang.Object
- 
- org.eclipse.net4j.util.event.Notifier
- 
- org.eclipse.net4j.util.lifecycle.Lifecycle
- 
- org.eclipse.net4j.util.concurrent.RWLockManager<OBJECT,CONTEXT>
 
 
 
- 
- All Implemented Interfaces:
- IRWLockManager<OBJECT,CONTEXT>,- INotifier,- INotifier.INotifier2,- IDeactivateable,- ILifecycle,- ILifecycle.DeferrableActivation
 
 @Deprecated public class RWLockManager<OBJECT,CONTEXT> extends Lifecycle implements IRWLockManager<OBJECT,CONTEXT> Deprecated.As of 3.2 useRWOLockManager.Support Multiple reads/no write and upgrade lock from read to write. Many context could requestwritelock at the same time. It will privileges first context that has already areadlock. If no one has any read lock, it's "first come first serve".- Since:
- 2.0
- Author:
- Simon McDuff
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static interfaceRWLockManager.LockEntry<OBJECT,CONTEXT>Deprecated.UseRWOLockManagerprotected static interfaceRWLockManager.LockEntryHandler<OBJECT,CONTEXT>Deprecated.UseRWOLockManagerprotected static interfaceRWLockManager.LockStrategy<OBJECT,CONTEXT>Deprecated.UseRWOLockManager- 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.concurrent.IRWLockManagerIRWLockManager.LockType
 
- 
 - 
Field Summary- 
Fields inherited from interface org.eclipse.net4j.util.concurrent.IRWLockManagerNO_WAIT, WAIT
 
- 
 - 
Constructor SummaryConstructors Constructor Description RWLockManager()Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidchangeContext(CONTEXT oldContext, CONTEXT newContext)Deprecated.protected RWLockManager.LockEntry<OBJECT,CONTEXT>getLockEntry(OBJECT objectToLock)Deprecated.protected RWLockManager.LockStrategy<OBJECT,CONTEXT>getLockingStrategy(IRWLockManager.LockType type)Deprecated.protected voidhandleLockEntries(CONTEXT context, RWLockManager.LockEntryHandler<OBJECT,CONTEXT> handler)Deprecated.booleanhasLock(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock)Deprecated.booleanhasLockByOthers(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock)Deprecated.voidlock(IRWLockManager.LockType type, CONTEXT context, java.util.Collection<? extends OBJECT> objectsToLock, long timeout)Deprecated.voidlock(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock, long timeout)Deprecated.voidunlock(CONTEXT context)Deprecated.Attempts to release all locks(read and write) for a given context.voidunlock(IRWLockManager.LockType type, CONTEXT context, java.util.Collection<? extends OBJECT> objectsToUnlock)Deprecated.Attempts to release for a given locktype, context and objects.- 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycleactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
 - 
Methods inherited from class org.eclipse.net4j.util.event.NotifieraddListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.util.event.INotifieraddListener, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
lockpublic void lock(IRWLockManager.LockType type, CONTEXT context, java.util.Collection<? extends OBJECT> objectsToLock, long timeout) throws java.lang.InterruptedException Deprecated.- Specified by:
- lockin interface- IRWLockManager<OBJECT,CONTEXT>
- Throws:
- java.lang.InterruptedException
- Since:
- 3.0
 
 - 
lockpublic void lock(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock, long timeout) throws java.lang.InterruptedException Deprecated.- Specified by:
- lockin interface- IRWLockManager<OBJECT,CONTEXT>
- Throws:
- java.lang.InterruptedException
- Since:
- 3.0
 
 - 
unlockpublic void unlock(IRWLockManager.LockType type, CONTEXT context, java.util.Collection<? extends OBJECT> objectsToUnlock) Deprecated.Attempts to release for a given locktype, context and objects.- Specified by:
- unlockin interface- IRWLockManager<OBJECT,CONTEXT>
- Throws:
- java.lang.IllegalMonitorStateException- Unlocking objects without lock.
- Since:
- 3.0
 
 - 
unlockpublic void unlock(CONTEXT context) Deprecated.Attempts to release all locks(read and write) for a given context.- Specified by:
- unlockin interface- IRWLockManager<OBJECT,CONTEXT>
 
 - 
hasLockpublic boolean hasLock(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock) Deprecated.- Specified by:
- hasLockin interface- IRWLockManager<OBJECT,CONTEXT>
- Since:
- 3.0
 
 - 
hasLockByOtherspublic boolean hasLockByOthers(IRWLockManager.LockType type, CONTEXT context, OBJECT objectToLock) Deprecated.- Specified by:
- hasLockByOthersin interface- IRWLockManager<OBJECT,CONTEXT>
- Since:
- 3.0
 
 - 
handleLockEntriesprotected void handleLockEntries(CONTEXT context, RWLockManager.LockEntryHandler<OBJECT,CONTEXT> handler) Deprecated.- Since:
- 3.1
 
 - 
getLockEntryprotected RWLockManager.LockEntry<OBJECT,CONTEXT> getLockEntry(OBJECT objectToLock) Deprecated.- Since:
- 3.1
 
 - 
getLockingStrategyprotected RWLockManager.LockStrategy<OBJECT,CONTEXT> getLockingStrategy(IRWLockManager.LockType type) Deprecated.- Since:
- 3.1
 
 
- 
 
-