|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.impl.transaction.AbstractTransactionManager
org.neo4j.kernel.impl.transaction.TxManager
public class TxManager
Public for testing purpose only. Use TransactionFactory to get a
UserTransaction, don't use this class.
| Method Summary | |
|---|---|
void |
attemptWaitForTxCompletionAndBlockFutureTransactions(long maxWaitTimeMillis)
Prevents new transactions from being created by throwing exception in beginTx and waits for all existing transactions to complete. |
void |
begin()
|
void |
commit()
|
void |
dumpTransactions()
|
int |
getActiveTxCount()
|
int |
getCommittedTxCount()
|
int |
getEventIdentifier()
|
int |
getPeakConcurrentTxCount()
|
int |
getRolledbackTxCount()
|
int |
getStartedTxCount()
|
int |
getStatus()
|
Transaction |
getTransaction()
|
void |
init(XaDataSourceManager xaDsManagerToUse)
Begins the transaction manager, possibly triggering a recovery. |
void |
resume(Transaction tx)
|
void |
rollback()
|
void |
setRollbackOnly()
|
void |
setTransactionTimeout(int seconds)
|
void |
stop()
Stops the transaction manager, performing all implementation specific cleanup. |
Transaction |
suspend()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void stop()
AbstractTransactionManager
stop in class AbstractTransactionManagerpublic void init(XaDataSourceManager xaDsManagerToUse)
AbstractTransactionManager
init in class AbstractTransactionManagerxaDsManagerToUse - The XaDataSourceManager that has registered the Xa
resources.public void attemptWaitForTxCompletionAndBlockFutureTransactions(long maxWaitTimeMillis)
AbstractTransactionManager
attemptWaitForTxCompletionAndBlockFutureTransactions in class AbstractTransactionManager
public void begin()
throws NotSupportedException,
SystemException
NotSupportedException
SystemException
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
IllegalStateException,
SystemException
RollbackException
HeuristicMixedException
HeuristicRollbackException
IllegalStateException
SystemException
public void rollback()
throws IllegalStateException,
SystemException
IllegalStateException
SystemExceptionpublic int getStatus()
public Transaction getTransaction()
public void resume(Transaction tx)
throws IllegalStateException,
SystemException
IllegalStateException
SystemException
public Transaction suspend()
throws SystemException
SystemException
public void setRollbackOnly()
throws IllegalStateException,
SystemException
IllegalStateException
SystemException
public void setTransactionTimeout(int seconds)
throws SystemException
SystemExceptionpublic void dumpTransactions()
public int getEventIdentifier()
public int getStartedTxCount()
public int getCommittedTxCount()
public int getRolledbackTxCount()
public int getActiveTxCount()
public int getPeakConcurrentTxCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||