Package org.entityfs.lock

Entity locking interfaces.

See:
          Description

Interface Summary
EntityLock The EntityLock is a reentrant Lock for a lockable object (not only for entity objects).
EntityLockAdapter This is an extension of the LockAdapter that is used by entity objects.
EntityLockAdapterFactory An EntityLockAdapterFactory is a factory for creating EntityLockAdapter:s for lockable objects (mostly entities, but also other EntityRepositiory implementations).
Lockable This is an empty marker interface that identifies a lockable object.
LockAcquiringStrategy This interface defines a strategy for how a single lock is locked.
LockAdapter The lock adapter is used as a generic interface to an object's locks.
LockAdapterFactory This is the interface for a factory that can create LockAdapter:s.
ReadLockable This interface is implemented by classes that can be locked for reading.
ReadWriteLockable This interface combines the ReadLockable and WriteLockable interfaces.
WriteLockable This interface is implemented by classes that can be locked for writing.
 

Class Summary
AbstractLockable This is an abstract base class that may be inherited by classes that want to implement ReadLockable and WriteLockable.
AbstractReadWriteLockableProxy<T extends ReadWriteLockable> This abstract class can be used as a starting point for implementing a proxy for a ReadWriteLockable class.
CompoundEntityLock This is an EntityLock that contains a collection of EntityLock:s.
DummyLock This is a dummy EntityLock.
EntityLocks This class contains static utility methods for working with EntityLock:s.
NoObjectDummyLock This is a dummy EntityLock implementation that is not connected to any particular entity.
 

Exception Summary
LockRequiredException Abstract base class for locking exceptions.
ReadLockRequiredException Exception thrown when a calling thread does not have a required read lock.
WriteLockRequiredException Exception thrown when a calling thread does not have a required write lock.
 

Package org.entityfs.lock Description

Entity locking interfaces.

Since:
1.0
Author:
Karl Gustafsson