|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> services >> [ locks overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.services.locks
Class ShExLockable

java.lang.Objectorg.apache.derby.iapi.services.locks.ShExLockable
- All Implemented Interfaces:
- Lockable
- public class ShExLockable
- extends java.lang.Object
- implements Lockable
- extends java.lang.Object
| Constructor Summary | |
ShExLockable()
|
|
| Method Summary | |
boolean |
lockAttributes(int flag,
java.util.Hashtable attributes)
This lockable want to participate in the Virtual LockTable when we want to print LATCH information. |
boolean |
lockerAlwaysCompatible()
Returns true if any lock request on a Lockable L in a compatibility space CS1 is compatible with any other lock held on L in CS1. |
void |
lockEvent(Latch lockInfo)
Note the fact the object is locked. |
boolean |
requestCompatible(java.lang.Object requestedQualifier,
java.lang.Object grantedQualifier)
Return true if the requested qualifier is compatible with the already granted qualifier. |
void |
unlockEvent(Latch lockInfo)
Note that the object has been unlocked |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
ShExLockable
public ShExLockable()
| Method Detail |
lockerAlwaysCompatible
public boolean lockerAlwaysCompatible()
- Description copied from interface:
Lockable - Returns true if any lock request on a Lockable L in a compatibility space CS1 is compatible
with any other lock held on L in CS1.
- Specified by:
lockerAlwaysCompatiblein interfaceLockable
requestCompatible
public boolean requestCompatible(java.lang.Object requestedQualifier, java.lang.Object grantedQualifier)
- Description copied from interface:
Lockable - Return true if the requested qualifier is compatible with the already granted
qualifier.
- Specified by:
requestCompatiblein interfaceLockable
lockEvent
public void lockEvent(Latch lockInfo)
- Description copied from interface:
Lockable - Note the fact the object is locked. Performs required actions
to ensure that unlockEvent() work correctly.
This method does not actually perform any locking of the
object, the locking mechanism is provided by the lock manager.
If the class supports multiple lockers of the object then this method will be called once per locker, each with their own qualifier.
Must only be called by the lock manager. Synchronization will be handled by the lock manager.
unlockEvent
public void unlockEvent(Latch lockInfo)
- Description copied from interface:
Lockable - Note that the object has been unlocked
Must only be called by the lock manager. Synchronization will be handled by the lock manager.
- Specified by:
unlockEventin interfaceLockable
lockAttributes
public boolean lockAttributes(int flag,
java.util.Hashtable attributes)
- This lockable want to participate in the Virtual LockTable
when we want to print LATCH information.
Any lockable object which DOES NOT want to participate should
override this function.
- Specified by:
lockAttributesin interfaceLockable
|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> services >> [ locks overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.iapi.services.locks.ShExLockable