public interface CDOLock
extends java.util.concurrent.locks.Lock
object
as returned by CDOObject.cdoReadLock()
or
CDOObject.cdoWriteLock()
.Modifier and Type | Method and Description |
---|---|
CDOObject |
getObject() |
IRWLockManager.LockType |
getType() |
boolean |
isLocked()
|
boolean |
isLockedByOthers()
Returns
true if this lock is currently held by another view (i.e. |
void |
lock(long millis) |
void |
lock(long time,
java.util.concurrent.TimeUnit unit) |
boolean |
tryLock(long millis) |
static final int WAIT
static final int NO_WAIT
CDOObject getObject()
IRWLockManager.LockType getType()
void lock(long time, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutException
void lock(long millis) throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutException
boolean tryLock(long millis) throws java.lang.InterruptedException
java.lang.InterruptedException
boolean isLocked()
boolean isLockedByOthers()
true
if this lock is currently held by another view
(i.e. any view different
from the requesting one), false
otherwise.Copyright (c) 2004-2019 Eike Stepper (Loehne, 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