org.apache.commons.transaction.file
Class FileResourceManager.TransactionContext
java.lang.Object
org.apache.commons.transaction.file.FileResourceManager.TransactionContext
- Enclosing class:
- FileResourceManager
protected class FileResourceManager.TransactionContext
- extends java.lang.Object
Inner class to hold the complete context, i.e. all information needed, for a transaction.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
txId
protected java.lang.Object txId
status
protected int status
isolationLevel
protected int isolationLevel
timeoutMSecs
protected long timeoutMSecs
startTime
protected long startTime
commitTime
protected long commitTime
isLightWeight
protected boolean isLightWeight
readOnly
protected boolean readOnly
finished
protected boolean finished
FileResourceManager.TransactionContext
public FileResourceManager.TransactionContext(java.lang.Object txId)
throws ResourceManagerException
- Throws:
ResourceManagerException
getRemainingTimeout
public long getRemainingTimeout()
init
public void init()
throws ResourceManagerException
- Throws:
ResourceManagerException
rollback
public void rollback()
throws ResourceManagerException
- Throws:
ResourceManagerException
commit
public void commit()
throws ResourceManagerException
- Throws:
ResourceManagerException
notifyFinish
public void notifyFinish()
cleanUp
public void cleanUp()
throws ResourceManagerException
- Throws:
ResourceManagerException
finalCleanUp
public void finalCleanUp()
throws ResourceManagerException
- Throws:
ResourceManagerException
upgradeLockToCommit
public void upgradeLockToCommit()
throws ResourceManagerException
- Throws:
ResourceManagerException
freeLocks
public void freeLocks()
closeResources
public void closeResources()
registerResource
public void registerResource(java.lang.Object openResource)
saveState
public void saveState()
throws ResourceManagerException
- Throws:
ResourceManagerException
recoverState
public void recoverState()
throws ResourceManagerException
- Throws:
ResourceManagerException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright ? 2004 The Apache Software Foundation. All Rights Reserved.