org.eclipse.emf.cdo
Interface CDOLock

All Superinterfaces:
Lock

public interface CDOLock
extends Lock

Once object got lock, it will not go in conflict mode or cannot be changed.

Since:
2.0
Author:
Simon McDuff
No Implement
This interface is not intended to be implemented by clients.
No Extend
This interface is not intended to be extended by clients.

Field Summary
static int NO_WAIT
          TODO Simon: JavaDoc
static int WAIT
          TODO Simon: JavaDoc
 
Method Summary
 IRWLockManager.LockType getType()
          TODO Simon: JavaDoc
 boolean isLocked()
          Returns true if this lock is currently held by the requesting view, false otherwise.
 boolean isLockedByOthers()
          Returns true if this lock is currently held by another view (i.e. any view different from the requesting one), false otherwise.
 void lock(long millis)
           
 void lock(long time, TimeUnit unit)
           
 boolean tryLock(long millis)
           
 
Methods inherited from interface java.util.concurrent.locks.Lock
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
 

Field Detail

WAIT

static final int WAIT
TODO Simon: JavaDoc

See Also:
Constant Field Values

NO_WAIT

static final int NO_WAIT
TODO Simon: JavaDoc

See Also:
Constant Field Values
Method Detail

getType

IRWLockManager.LockType getType()
TODO Simon: JavaDoc

Since:
3.0

lock

void lock(long time,
          TimeUnit unit)
          throws TimeoutException
Throws:
TimeoutException
Since:
4.0

lock

void lock(long millis)
          throws TimeoutException
Throws:
TimeoutException
Since:
4.0

tryLock

boolean tryLock(long millis)
                throws InterruptedException
Throws:
InterruptedException
Since:
4.0

isLocked

boolean isLocked()
Returns true if this lock is currently held by the requesting view, false otherwise.


isLockedByOthers

boolean isLockedByOthers()
Returns true if this lock is currently held by another view (i.e. any view different from the requesting one), false otherwise.



Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.