public static interface AbstractReadWriteAccessStrategy.Lockable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue()
Returns the enclosed value.
|
boolean |
isReadable(long txTimestamp)
Returns
true if the enclosed value can be read by a transaction started at the given time. |
boolean |
isUnlockable(SoftLock lock)
Returns
true if the given lock can be unlocked using the given SoftLock instance as a handle. |
boolean |
isWriteable(long txTimestamp,
java.lang.Object version,
java.util.Comparator versionComparator)
Returns
true if the enclosed value can be replaced with one of the given version by a
transaction started at the given time. |
AbstractReadWriteAccessStrategy.Lock |
lock(long timeout,
java.util.UUID uuid,
long lockId)
Locks this entry, stamping it with the UUID and lockId given, with the lock timeout occuring at the specified
time.
|
boolean isReadable(long txTimestamp)
true
if the enclosed value can be read by a transaction started at the given time.boolean isWriteable(long txTimestamp, java.lang.Object version, java.util.Comparator versionComparator)
true
if the enclosed value can be replaced with one of the given version by a
transaction started at the given time.java.lang.Object getValue()
boolean isUnlockable(SoftLock lock)
true
if the given lock can be unlocked using the given SoftLock instance as a handle.AbstractReadWriteAccessStrategy.Lock lock(long timeout, java.util.UUID uuid, long lockId)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.