org.entityfs.lock
Class DummyLock
java.lang.Object
org.entityfs.lock.NoObjectDummyLock
org.entityfs.lock.DummyLock
- All Implemented Interfaces:
- Lock, EntityLock
public class DummyLock
- extends NoObjectDummyLock
This is a dummy EntityLock
. It is returned from the locking methods
defined in EntityView
if the file system is not locking.
- Since:
- 1.0
- Author:
- Karl Gustafsson
Methods inherited from class org.entityfs.lock.NoObjectDummyLock |
getHoldCount, isDummy, isHeldByCurrentThread, isReadLock, isWriteLock, lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyLock
public DummyLock(Lockable locked)
getLocked
public Lockable getLocked()
- Description copied from interface:
EntityLock
- Get the locked object. For locks that are not connected to any particular
object (dummy locks, mostly), this method returns
null
.
- Specified by:
getLocked
in interface EntityLock
- Overrides:
getLocked
in class NoObjectDummyLock
- Returns:
null
, always.