| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public long | |
| public long | |
| public int | |
| public boolean | lockAttributes(int
use the bits in this int to decide if the user is
interested in this kind of lockable object. The bits are defined in
VirtualLockTable. For instance, the user may only ask
for TABLE_AND_ROWLOCK and if this is not a table or row lock, then
don't participate. flag, Hashtable<String, Object> if this decides to participate, put all relevant
attributes into the Hashtable. The complete list of interesting
attributes is listed in VirtualLockTable.
The following attributes must be present for all participating
lockables:
VirtualLockTable.LOCKNAME,
VirtualLockTable.LOCKTYPE,
either VirtualLockTable.CONTAINERID or VirtualLockTable.CONGLOMID,
attributes)MT - this routine must be MP safe, caller will not be single threading the lock manager. Implements org. This lockable wants to participate in the Virtual Lock table. |
| public boolean | lockerAlwaysCompatible()
Implements org. This method will only be called if requestCompatible returned false. |
| public void | lockEvent(Latch
Latch descriptor lockInfo)Implements org. Note the fact the object is locked. |
| public boolean | match(Object key)
Implements org. Return true if the passed in object matches this object. |
| public static ContainerKey | |
| public boolean | requestCompatible(Object
The desired qualifier requestedQualifier, Object The already granted qualifier grantedQualifier)Implements org. Return true if the requested qualifier is compatible with the already granted qualifier. |
| public String | |
| public void | unlockEvent(Latch
Latch descriptor lockInfo)Implements org. Note that the object has been unlocked Must only be called by the lock manager. |
| public void |
| containerId | back to summary |
|---|---|
| private final long containerId | |
| segmentId | back to summary |
|---|---|
| private final long segmentId | |
| ContainerKey | back to summary |
|---|---|
| public ContainerKey(long segmentId, long containerId) Create a new ContainerKey | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getContainerId | back to summary |
|---|---|
| public long getContainerId() Return my identifier within the segment | |
| getSegmentId | back to summary |
|---|---|
| public long getSegmentId() Return my segment identifier | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| lockAttributes | back to summary |
|---|---|
| public boolean lockAttributes(int flag, Hashtable<String, Object> attributes) Implements org. This lockable wants to participate in the Virtual Lock table.
| |
| lockerAlwaysCompatible | back to summary |
|---|---|
| public boolean lockerAlwaysCompatible() Implements org. This method will only be called if requestCompatible returned false. This results from two cases, some other compatabilty space has some lock that would conflict with the request, or this compatability space has a lock tha
| |
| lockEvent | back to summary |
|---|---|
| public void lockEvent(Latch lockInfo) Implements org. Doc from org. 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.
| |
| match | back to summary |
|---|---|
| public boolean match(Object key) Implements org. Doc from org. Return true if the passed in object matches this object. | |
| read | back to summary |
|---|---|
| public static ContainerKey read(ObjectInput in) throws IOException | |
| requestCompatible | back to summary |
|---|---|
| public boolean requestCompatible(Object requestedQualifier, Object grantedQualifier) Implements org. Doc from org. Return true if the requested qualifier is compatible with the already granted qualifier. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| unlockEvent | back to summary |
|---|---|
| public void unlockEvent(Latch lockInfo) Implements org. Doc from org. Note that the object has been unlocked Must only be called by the lock manager. Synchronization will be handled by the lock manager.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException | |