public interface InternalLockManager extends IRWOLockManager<Object,IView>, ILockingManager
CDOIDAndBranch
or CDOID
, depending on whether
branching is supported by the repository or not.IRWLockManager.LockType
ILockingManager.DurableViewHandler
IDurableLockingManager.LockArea, IDurableLockingManager.LockAreaAlreadyExistsException, IDurableLockingManager.LockAreaNotFoundException, IDurableLockingManager.LockGrade
NO_WAIT, WAIT
lock2, unlock2, unlock2, unlock2
hasLock, hasLockByOthers, lock, lock, unlock, unlock
addDurableViewHandler, getDurableViewHandlers, removeDurableViewHandler
createLockArea, deleteLockArea, getLockArea, getLockAreas
InternalRepository getRepository()
void setRepository(InternalRepository repository)
Map<CDOID,IDurableLockingManager.LockGrade> getLocks(IView view)
@Deprecated void lock(boolean explicit, IRWLockManager.LockType type, IView context, Collection<? extends Object> objects, long timeout) throws InterruptedException
InterruptedException
List<RWOLockManager.LockState<Object,IView>> lock2(boolean explicit, IRWLockManager.LockType type, IView context, Collection<? extends Object> objects, boolean recursive, long timeout) throws InterruptedException
InterruptedException
@Deprecated void unlock(boolean explicit, IRWLockManager.LockType type, IView context, Collection<? extends Object> objects)
IllegalMonitorStateException
- Unlocking objects without lock.List<RWOLockManager.LockState<Object,IView>> unlock2(boolean explicit, IRWLockManager.LockType type, IView context, Collection<? extends Object> objects, boolean recursive)
@Deprecated void unlock(boolean explicit, IView context)
List<RWOLockManager.LockState<Object,IView>> unlock2(boolean explicit, IView context)
IDurableLockingManager.LockArea createLockArea(InternalView view)
IDurableLockingManager.LockArea createLockArea(InternalView view, String lockAreaID)
void updateLockArea(IDurableLockingManager.LockArea lockArea)
IView openView(ISession session, int viewID, boolean readOnly, String durableLockingID)
IDurableLockingManager.LockGrade getLockGrade(Object key)
RWOLockManager.LockState<Object,IView> getLockState(Object key)
List<RWOLockManager.LockState<Object,IView>> getLockStates()
void setLockState(Object key, RWOLockManager.LockState<Object,IView> lockState)
void reloadLocks()
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html