public class LockerFactory
extends java.lang.Object
Constructor and Description |
---|
LockerFactory() |
Modifier and Type | Method and Description |
---|---|
static Locker |
getReadableLocker(Environment env,
Database dbHandle,
Locker locker,
boolean retainNonTxnLocks,
boolean readCommittedIsolation)
Get a locker for this database handle for a read or cursor operation.
|
static Locker |
getReadableLocker(Environment env,
Transaction userTxn,
boolean dbIsTransactional,
boolean retainNonTxnLocks,
boolean readCommittedIsolation)
Get a locker for a read or cursor operation.
|
static Locker |
getWritableLocker(Environment env,
Transaction userTxn,
boolean dbIsTransactional)
Get a locker for a writable operation, checking whether the db and
environment is transactional or not.
|
static Locker |
getWritableLocker(Environment env,
Transaction userTxn,
boolean dbIsTransactional,
boolean retainNonTxnLocks,
TransactionConfig autoCommitConfig)
Get a locker for a writable operation, also specifying whether to retain
non-transactional locks when a new locker must be created.
|
public static Locker getWritableLocker(Environment env, Transaction userTxn, boolean dbIsTransactional) throws DatabaseException
DatabaseException
public static Locker getWritableLocker(Environment env, Transaction userTxn, boolean dbIsTransactional, boolean retainNonTxnLocks, TransactionConfig autoCommitConfig) throws DatabaseException
retainNonTxnLocks
- is true for DbTree operations, so that the
handle lock may be transferred out of the locker when the operation is
complete.DatabaseException
public static Locker getReadableLocker(Environment env, Transaction userTxn, boolean dbIsTransactional, boolean retainNonTxnLocks, boolean readCommittedIsolation) throws DatabaseException
DatabaseException
public static Locker getReadableLocker(Environment env, Database dbHandle, Locker locker, boolean retainNonTxnLocks, boolean readCommittedIsolation) throws DatabaseException
DatabaseException