|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.txn.LockerFactory
public class LockerFactory
Factory of static methods for creating Locker objects.
Constructor Summary | |
---|---|
LockerFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockerFactory()
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |