|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjconch.lock.AbstractLogEqLock<OBJ_T,LOCK_T>
OBJ_T - The type of object which will be used for logically equivalent
comparisons.LOCK_T - The type of lock provided by the implementing class.public abstract class AbstractLogEqLock<OBJ_T,LOCK_T>
Provides the basic implementation for logically equivalent locks.
| Constructor Summary | |
|---|---|
AbstractLogEqLock()
|
|
| Method Summary | |
|---|---|
protected abstract LOCK_T |
createNewLock()
Implementation of the "lock" that is created. |
LOCK_T |
getLock(OBJ_T in)
Provides a lock for the given object. |
protected boolean |
hasLockFor(OBJ_T obj)
Determines if we have a lock for the given object currently at hand. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractLogEqLock()
| Method Detail |
|---|
public LOCK_T getLock(OBJ_T in)
in - The object whose lock is wanted.
protected boolean hasLockFor(OBJ_T obj)
obj - The object to check on.
getLock(Object) applied to the parameter would
provide a new lock.protected abstract LOCK_T createNewLock()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||