|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.transaction.impl.TransactionManager
public abstract class TransactionManager
Standard implementation of the ITransactionQueueManager
| Constructor Summary | |
|---|---|
TransactionManager()
Create new TransactionQueueManager |
|
| Method Summary | |
|---|---|
void |
abort()
Abort the current transaction |
void |
begin()
Begin a transaction, blocking if another thread already started a transaction |
void |
beginNonBlocking()
Begin a transaction |
void |
commit()
Commit the current transaction |
boolean |
currentThreadOwnsTransaction()
Return whether the current thread owns the TransactionQueue lock |
boolean |
isInTransaction()
Get whether or not a transaction has begun. |
abstract void |
performAbort()
Perform internal processes needed to abort the current transaction |
abstract void |
performBegin()
Perform internal processes needed to begin a new transaction |
abstract void |
performCommit()
Perform internal processes needed to commit the current transaction |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionManager()
| Method Detail |
|---|
public boolean isInTransaction()
ITransactionManager
isInTransaction in interface ITransactionManagerpublic boolean currentThreadOwnsTransaction()
ITransactionManager
currentThreadOwnsTransaction in interface ITransactionManager
public abstract void performCommit()
throws AnzoException
AnzoException - if there was an error committing transaction
public abstract void performAbort()
throws AnzoException
AnzoException - if there was an error aborting transaction
public abstract void performBegin()
throws AnzoException
AnzoException - if there was an error beginning a transaction
public void commit()
throws AnzoException
ITransactionManager
commit in interface ITransactionManagerAnzoException - if another thread started the transaction or if no transaction is in started
public void abort()
throws AnzoException
ITransactionManager
abort in interface ITransactionManagerAnzoException - if another thread started the transaction or if no transaction is in started
public void beginNonBlocking()
throws AnzoException
ITransactionManager
beginNonBlocking in interface ITransactionManagerAnzoException - if another thread already started a transaction
public void begin()
throws AnzoException
ITransactionManager
begin in interface ITransactionManagerAnzoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||