Uses of Enum Class
org.cojen.tupl.LockResult
Packages that use LockResult
-
Uses of LockResult in org.cojen.tupl
Subclasses with type arguments of type LockResult in org.cojen.tuplModifier and TypeClassDescriptionenum
Result code returned by transactional operations which acquire locks.Methods in org.cojen.tupl that return LockResultModifier and TypeMethodDescriptionCursor.find
(byte[] key) Moves the Cursor to find the given key.default LockResult
Cursor.findGe
(byte[] key) Moves the Cursor to find the closest available entry greater than or equal to the given key.default LockResult
Cursor.findGt
(byte[] key) Moves the Cursor to find the closest available entry greater than the given key.default LockResult
Cursor.findLe
(byte[] key) Moves the Cursor to find the closest available entry less than or equal to the given key.default LockResult
Cursor.findLt
(byte[] key) Moves the Cursor to find the closest available entry less than the given key.default LockResult
Cursor.findNearby
(byte[] key) Optimized version of the regularfind
method, which can perform fewer search steps if the given key is in close proximity to the current one.default LockResult
Cursor.findNearbyGe
(byte[] key) Optimized version of the regularfindGe
method, which can perform fewer search steps if the given key is in close proximity to the current one.default LockResult
Cursor.findNearbyGt
(byte[] key) Optimized version of the regularfindGt
method, which can perform fewer search steps if the given key is in close proximity to the current one.default LockResult
Cursor.findNearbyLe
(byte[] key) Optimized version of the regularfindLe
method, which can perform fewer search steps if the given key is in close proximity to the current one.default LockResult
Cursor.findNearbyLt
(byte[] key) Optimized version of the regularfindLt
method, which can perform fewer search steps if the given key is in close proximity to the current one.Cursor.first()
Moves the Cursor to find the first available entry.Cursor.last()
Moves the Cursor to find the last available entry.Cursor.load()
Loads or reloads the value at the cursor's current position.default LockResult
Cursor.lock()
Locks the current entry, as if by calling load.Transaction.lockCheck
(long indexId, byte[] key) Checks the lock ownership for the given key.View.lockCheck
(Transaction txn, byte[] key) Checks the lock ownership for the given key.Transaction.lockExclusive
(long indexId, byte[] key) Attempts to acquire an exclusive lock for the given key, denying any additional locks.Transaction.lockExclusive
(long indexId, byte[] key, long nanosTimeout) Attempts to acquire an exclusive lock for the given key, denying any additional locks.View.lockExclusive
(Transaction txn, byte[] key) Explicitly acquire an exclusive lock for the given key, denying any additional locks.Transaction.lockShared
(long indexId, byte[] key) Attempts to acquire a shared lock for the given key, denying exclusive locks.Transaction.lockShared
(long indexId, byte[] key, long nanosTimeout) Attempts to acquire a shared lock for the given key, denying exclusive locks.View.lockShared
(Transaction txn, byte[] key) Explicitly acquire a shared lock for the given key, denying exclusive locks.Transaction.lockUpgradable
(long indexId, byte[] key) Attempts to acquire an upgradable lock for the given key, denying exclusive and additional upgradable locks.Transaction.lockUpgradable
(long indexId, byte[] key, long nanosTimeout) Attempts to acquire an upgradable lock for the given key, denying exclusive and additional upgradable locks.View.lockUpgradable
(Transaction txn, byte[] key) Explicitly acquire an upgradable lock for the given key, denying exclusive and additional upgradable locks.Cursor.next()
Moves to the Cursor to the next available entry.default LockResult
Cursor.nextLe
(byte[] limitKey) Moves to the Cursor to the next available entry, but only when less than or equal to the given limit key.default LockResult
Cursor.nextLt
(byte[] limitKey) Moves to the Cursor to the next available entry, but only when less than the given limit key.Cursor.previous()
Moves to the Cursor to the previous available entry.default LockResult
Cursor.previousGe
(byte[] limitKey) Moves to the Cursor to the previous available entry, but only when greater than or equal to the given limit key.default LockResult
Cursor.previousGt
(byte[] limitKey) Moves to the Cursor to the previous available entry, but only when greater than the given limit key.Cursor.random
(byte[] lowKey, boolean lowInclusive, byte[] highKey, boolean highInclusive) Moves the Cursor to a random entry, but not guaranteed to be chosen from a uniform distribution.default LockResult
Cursor.random
(byte[] lowKey, byte[] highKey) Moves the Cursor to a random entry, but not guaranteed to be chosen from a uniform distribution.Cursor.skip
(long amount) Moves the Cursor by a relative amount of entries.default LockResult
Cursor.skip
(long amount, byte[] limitKey, boolean inclusive) Moves the Cursor by a relative amount of entries, stopping sooner if the limit key is reached.default LockResult
View.touch
(Transaction txn, byte[] key) Touch the given key as if callingload
, but instead only acquiring any necessary locks.Transaction.tryLockExclusive
(long indexId, byte[] key, long nanosTimeout) Attempts to acquire an exclusive lock for the given key, denying any additional locks.default LockResult
View.tryLockExclusive
(Transaction txn, byte[] key, long nanosTimeout) Explicitly acquire an exclusive lock for the given key, denying any additional locks.Transaction.tryLockShared
(long indexId, byte[] key, long nanosTimeout) Attempts to acquire a shared lock for the given key, denying exclusive locks.default LockResult
View.tryLockShared
(Transaction txn, byte[] key, long nanosTimeout) Explicitly acquire a shared lock for the given key, denying exclusive locks.Transaction.tryLockUpgradable
(long indexId, byte[] key, long nanosTimeout) Attempts to acquire an upgradable lock for the given key, denying exclusive and additional upgradable locks.default LockResult
View.tryLockUpgradable
(Transaction txn, byte[] key, long nanosTimeout) Explicitly acquire an upgradable lock for the given key, denying exclusive and additional upgradable locks.static LockResult
Returns the enum constant of this class with the specified name.static LockResult[]
LockResult.values()
Returns an array containing the constants of this enum class, in the order they are declared.