Package org.eclipse.emf.cdo.spi.server
Interface InternalLockManager
- All Superinterfaces:
IDurableLockingManager
,ILockingManager
,org.eclipse.net4j.util.concurrent.IRWLockManager<Object,
,IView> org.eclipse.net4j.util.concurrent.IRWOLockManager<Object,
IView>
public interface InternalLockManager
extends org.eclipse.net4j.util.concurrent.IRWOLockManager<Object,IView>, ILockingManager
The type of the to-be-locked objects is either
CDOIDAndBranch
or CDOID
, depending on whether
branching is supported by the repository or not.
The following features are supported in addition to IRWOLockManager
:
- Recursive locking
- Distinction between explicit and implicit locking
- Durable locking
- Since:
- 3.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.common.lock.IDurableLockingManager
IDurableLockingManager.LockArea, IDurableLockingManager.LockAreaAlreadyExistsException, IDurableLockingManager.LockAreaNotFoundException, IDurableLockingManager.LockGrade
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.ILockingManager
ILockingManager.DurableViewHandler
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.concurrent.IRWLockManager
org.eclipse.net4j.util.concurrent.IRWLockManager.LockType
-
Field Summary
Fields inherited from interface org.eclipse.net4j.util.concurrent.IRWLockManager
NO_WAIT, WAIT
Fields inherited from interface org.eclipse.net4j.util.concurrent.IRWOLockManager
ALL_LOCK_TYPES, ALL_LOCKS, ALL_OBJECTS, NO_TIMEOUT
-
Method Summary
Modifier and TypeMethodDescriptioncreateLockArea
(InternalView view) createLockArea
(InternalView view, String lockAreaID) getLockEntryObject
(Object key) Deprecated.getLockGrade
(Object key) getLockKey
(CDOID id, CDOBranch branch) getLockKeyBranch
(Object key) getLockKeyID
(Object key) getLockState
(Object key) Deprecated.void
getLockStates
(Collection<Object> keys, BiConsumer<Object, org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> consumer) void
getLockStates
(Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> consumer) void
lock
(boolean explicit, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView view, Collection<? extends Object> objects, long timeout) Deprecated.long
lock
(IView view, Collection<? extends Object> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, int count, long timeout, boolean recursive, boolean explicit, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockDeltaHandler<Object, IView> deltaHandler, Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> stateHandler) long
lock
(IView context, Collection<? extends Object> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, int count, long timeout, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockDeltaHandler<Object, IView> deltaHandler, Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> stateHandler) Deprecated.void
lock
(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Object objectToLock, long timeout) Deprecated.void
lock
(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Collection<? extends Object> objectsToLock, long timeout) Deprecated.lock2
(boolean explicit, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView view, Collection<? extends Object> objects, boolean recursive, long timeout) Deprecated.lock2
(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Collection<? extends Object> objectsToLock, long timeout) Deprecated.Deprecated.void
openView
(ISession session, int viewID, boolean readOnly, String durableLockingID, Consumer<IView> viewConsumer, BiConsumer<CDOID, IDurableLockingManager.LockGrade> lockConsumer) void
void
setLockState
(Object key, org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView> lockState) Deprecated.void
setRepository
(InternalRepository repository) void
Deprecated.void
unlock
(boolean explicit, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView view, Collection<? extends Object> objects) Deprecated.void
Deprecated.long
unlock
(IView view, Collection<? extends Object> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, int count, boolean recursive, boolean explicit, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockDeltaHandler<Object, IView> deltaHandler, Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> stateHandler) long
unlock
(IView context, Collection<? extends Object> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, int count, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockDeltaHandler<Object, IView> deltaHandler, Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> stateHandler) Deprecated.void
unlock
(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Collection<? extends Object> objectsToUnlock) Deprecated.Deprecated.unlock2
(boolean explicit, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView view, Collection<? extends Object> objects, boolean recursive) Deprecated.Deprecated.unlock2
(IView context, Collection<? extends Object> objectsToUnlock) Deprecated.unlock2
(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Collection<? extends Object> objectsToUnlock) Deprecated.void
Methods inherited from interface org.eclipse.emf.cdo.common.lock.IDurableLockingManager
createLockArea, deleteLockArea, getLockArea, getLockAreas
Methods inherited from interface org.eclipse.emf.cdo.server.ILockingManager
addDurableViewHandler, getDurableViewHandlers, removeDurableViewHandler
Methods inherited from interface org.eclipse.net4j.util.concurrent.IRWLockManager
hasLock, hasLockByOthers
Methods inherited from interface org.eclipse.net4j.util.concurrent.IRWOLockManager
getModCount
-
Method Details
-
getRepository
InternalRepository getRepository() -
setRepository
-
getLockKey
- Since:
- 4.0
-
getLockKeyID
- Since:
- 4.0
-
getLockKeyBranch
- Since:
- 4.15
-
getLocks
- Since:
- 4.0
-
lock
long lock(IView view, Collection<? extends Object> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, int count, long timeout, boolean recursive, boolean explicit, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockDeltaHandler<Object, IView> deltaHandler, Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, throws InterruptedException, org.eclipse.net4j.util.concurrent.TimeoutRuntimeExceptionIView>> stateHandler) - Throws:
InterruptedException
org.eclipse.net4j.util.concurrent.TimeoutRuntimeException
- Since:
- 4.15
-
unlock
long unlock(IView view, Collection<? extends Object> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, int count, boolean recursive, boolean explicit, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockDeltaHandler<Object, IView> deltaHandler, Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> stateHandler) - Since:
- 4.15
-
createLockArea
- Since:
- 4.0
-
createLockArea
- Since:
- 4.1
-
updateLockArea
- Since:
- 4.1
-
openView
void openView(ISession session, int viewID, boolean readOnly, String durableLockingID, Consumer<IView> viewConsumer, BiConsumer<CDOID, IDurableLockingManager.LockGrade> lockConsumer) - Since:
- 4.15
-
getLockGrade
- Since:
- 4.1
-
getLockState
- Since:
- 4.1
-
getLockStates
void getLockStates(Collection<Object> keys, BiConsumer<Object, org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> consumer) - Since:
- 4.15
-
getLockStates
void getLockStates(Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> consumer) - Since:
- 4.15
-
reloadLocks
void reloadLocks()- Since:
- 4.1
-
getLockStates
@Deprecated List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object,IView>> getLockStates()Deprecated. -
setLockState
@Deprecated void setLockState(Object key, org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView> lockState) Deprecated. -
getLockEntryObject
Deprecated. -
lock
@Deprecated void lock(boolean explicit, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView view, Collection<? extends Object> objects, long timeout) throws InterruptedException Deprecated.- Throws:
InterruptedException
-
lock
@Deprecated void lock(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Collection<? extends Object> objectsToLock, long timeout) throws InterruptedException Deprecated.- Specified by:
lock
in interfaceorg.eclipse.net4j.util.concurrent.IRWLockManager<Object,
IView> - Specified by:
lock
in interfaceorg.eclipse.net4j.util.concurrent.IRWOLockManager<Object,
IView> - Throws:
InterruptedException
-
lock
@Deprecated void lock(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Object objectToLock, long timeout) throws InterruptedException Deprecated.- Specified by:
lock
in interfaceorg.eclipse.net4j.util.concurrent.IRWLockManager<Object,
IView> - Specified by:
lock
in interfaceorg.eclipse.net4j.util.concurrent.IRWOLockManager<Object,
IView> - Throws:
InterruptedException
-
lock2
@Deprecated List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object,IView>> lock2(boolean explicit, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView view, Collection<? extends Object> objects, boolean recursive, long timeout) throws InterruptedException Deprecated.- Throws:
InterruptedException
-
lock2
@Deprecated List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object,IView>> lock2(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Collection<? extends Object> objectsToLock, long timeout) throws InterruptedException Deprecated.- Specified by:
lock2
in interfaceorg.eclipse.net4j.util.concurrent.IRWOLockManager<Object,
IView> - Throws:
InterruptedException
-
unlock
@Deprecated void unlock(boolean explicit, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView view, Collection<? extends Object> objects) Deprecated. -
unlock
Deprecated. -
unlock
@Deprecated void unlock(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Collection<? extends Object> objectsToUnlock) Deprecated. -
unlock
Deprecated. -
unlock2
@Deprecated List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object,IView>> unlock2(boolean explicit, IView view) Deprecated. -
unlock2
@Deprecated List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object,IView>> unlock2(boolean explicit, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView view, Collection<? extends Object> objects, boolean recursive) Deprecated. -
unlock2
@Deprecated List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object,IView>> unlock2(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, IView context, Collection<? extends Object> objectsToUnlock) Deprecated. -
unlock2
@Deprecated List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object,IView>> unlock2(IView context, Collection<? extends Object> objectsToUnlock) Deprecated. -
unlock2
@Deprecated List<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object,IView>> unlock2(IView context) Deprecated. -
lock
@Deprecated long lock(IView context, Collection<? extends Object> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, int count, long timeout, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockDeltaHandler<Object, IView> deltaHandler, Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, throws InterruptedException, org.eclipse.net4j.util.concurrent.TimeoutRuntimeExceptionIView>> stateHandler) Deprecated.- Specified by:
lock
in interfaceorg.eclipse.net4j.util.concurrent.IRWOLockManager<Object,
IView> - Throws:
InterruptedException
org.eclipse.net4j.util.concurrent.TimeoutRuntimeException
-
unlock
@Deprecated long unlock(IView context, Collection<? extends Object> objects, org.eclipse.net4j.util.concurrent.IRWLockManager.LockType lockType, int count, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockDeltaHandler<Object, IView> deltaHandler, Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<Object, IView>> stateHandler) Deprecated. -
openView
Deprecated.
-