|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.txn.Locker
com.sleepycat.je.txn.Txn
com.sleepycat.je.txn.AutoTxn
public class AutoTxn
An AutoTxn is one that's created by use of the AutoCommit property.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.txn.Txn |
---|
ACCUMULATED_LIMIT, TXN_NOSYNC, TXN_SYNC, TXN_WRITE_NOSYNC |
Fields inherited from class com.sleepycat.je.txn.Locker |
---|
defaultNoWait, deleteInfo, envImpl, handleLockToHandleMap, handleToHandleLockMap, id, lockManager, lockTimeOutMillis, readUncommittedDefault, thread |
Constructor Summary | |
---|---|
AutoTxn(EnvironmentImpl env,
TransactionConfig config)
|
Method Summary | |
---|---|
void |
operationEnd()
AutoTxns abort or commit at the end of the operation |
void |
operationEnd(boolean operationOK)
AutoTxns abort or commit at the end of the operation |
void |
setHandleLockOwner(boolean operationOK,
Database dbHandle,
boolean dbIsClosing)
Transfer any handle locks to the db handle on success. |
Methods inherited from class com.sleepycat.je.txn.Locker |
---|
addDeleteInfo, addToHandleMaps, demoteLock, dumpLockTable, getDefaultNoWait, getId, getLockTimeout, getTxnStartMillis, getTxnTimeOut, getWaitingFor, isReadUncommittedDefault, isTimedOut, lock, nonBlockingLock, operationEnd, releaseLock, setLockTimeout, setTxnTimeout, setWaitingFor, sharesLocksWith, toString, transferHandleLock, transferHandleLockToHandle, unregisterHandle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AutoTxn(EnvironmentImpl env, TransactionConfig config) throws DatabaseException
DatabaseException
Method Detail |
---|
public void operationEnd(boolean operationOK) throws DatabaseException
operationEnd
in class Txn
operationOK
- is whether the operation succeeded, since
that may impact ending behavior. (i.e for AutoTxn)
DatabaseException
public void operationEnd() throws DatabaseException
operationEnd
in class Txn
DatabaseException
public void setHandleLockOwner(boolean operationOK, Database dbHandle, boolean dbIsClosing) throws DatabaseException
setHandleLockOwner
in class Txn
DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |