public class LockerFactory extends Object
| Constructor and Description |
|---|
LockerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Locker |
getInternalReadOperationLocker(EnvironmentImpl envImpl)
Get a non-transactional locker for internal database operations.
|
static Locker |
getReadableLocker(Database dbHandle,
Locker locker,
boolean readCommittedIsolation)
Get a locker for this database handle for a read or cursor operation.
|
static Locker |
getReadableLocker(Database dbHandle,
Transaction userTxn,
boolean readCommittedIsolation)
Get a locker for a read or cursor operation.
|
static Locker |
getWritableLocker(Environment env,
Transaction userTxn,
boolean isInternalDb,
boolean dbIsTransactional,
boolean autoTxnIsReplicated)
Get a locker for a write operation, checking whether the db and
environment is transactional or not.
|
static Locker |
getWritableLocker(Environment env,
Transaction userTxn,
boolean isInternalDb,
boolean dbIsTransactional,
boolean autoTxnIsReplicated,
TransactionConfig autoCommitConfig)
Get a locker for a write operation.
|
public static Locker getWritableLocker(Environment env, Transaction userTxn, boolean isInternalDb, boolean dbIsTransactional, boolean autoTxnIsReplicated)
public static Locker getWritableLocker(Environment env, Transaction userTxn, boolean isInternalDb, boolean dbIsTransactional, boolean autoTxnIsReplicated, TransactionConfig autoCommitConfig)
autoTxnIsReplicated - is true if this transaction is
executed on a rep group master, and needs to be broadcast.
Currently, all application-created transactions are of the type
com.sleepycat.je.txn.Txn, and are replicated if the parent
environment is replicated. Auto Txns are trickier because they may
be created for a local write operation, such as log cleaning.public static Locker getReadableLocker(Database dbHandle, Transaction userTxn, boolean readCommittedIsolation)
public static Locker getReadableLocker(Database dbHandle, Locker locker, boolean readCommittedIsolation)
public static Locker getInternalReadOperationLocker(EnvironmentImpl envImpl)
Copyright © 2024. All rights reserved.