|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.lock.impl.EntityLockFactory
public class EntityLockFactory
The entity lock factory is used by all EntityLockAdapterFactory
:s to
create locks for entities and to create standalone locks.
Constructor Summary | |
---|---|
EntityLockFactory(boolean fair)
Create the factory. |
Method Summary | |
---|---|
EntityLock |
createEntityLock(Lockable locked,
boolean readLock,
boolean writeLock)
Create an entity read lock, write lock or a lock that is both. |
ReentrantLock |
createLock()
Create a standalone lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityLockFactory(boolean fair)
fair
- Should fair queuing be used when acquiring the created locks?Method Detail |
---|
public EntityLock createEntityLock(Lockable locked, boolean readLock, boolean writeLock)
locked
- The lockable object that the lock should be created for.readLock
- Is the lock a read lock?writeLock
- Is the lock a write lock?
public ReentrantLock createLock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |