Uses of Class
org.cojen.tupl.LockFailureException

Packages that use LockFailureException
Package
Description
See Database to get started with TuplDB.
  • Uses of LockFailureException in org.cojen.tupl

    Modifier and Type
    Class
    Description
    class 
    Thrown when a lock request by a transaction timed out due to a deadlock, or a trivial deadlock was quickly detected.
    class 
    Thrown when attempting to acquire an upgradable or exclusive lock when a shared lock is already held.
    class 
    Thrown when a lock request by a transaction was interrupted by another thread.
    class 
    Thrown when a lock request by a transaction timed out.
    Methods in org.cojen.tupl that throw LockFailureException
    Modifier and Type
    Method
    Description
    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.
    default LockResult
    View.touch(Transaction txn, byte[] key)
    Touch the given key as if calling load, 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.