|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.transaction.impl.LockingTransactionManager
public abstract class LockingTransactionManager
Standard implementation of the ITransactionQueueManager
| Constructor Summary | |
|---|---|
LockingTransactionManager()
Create new TransactionQueueManager |
|
| Method Summary | |
|---|---|
void |
abort()
Abort the current transaction |
void |
begin(boolean writeLock)
Begin a new transaction, blocking if another transaction is already started |
void |
beginNonBlocking(boolean writeLock)
Begin a new transaction |
void |
commit()
Commit the current transaction |
boolean |
currentThreadOwnsTransaction()
Determine if the current tread started the current transaction |
boolean |
isInTransaction()
Determine if transaction has been started |
abstract void |
performAbort()
Perform internal processes needed to abort the current transaction |
abstract void |
performBegin(boolean writeLock)
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 LockingTransactionManager()
| Method Detail |
|---|
public boolean isInTransaction()
public boolean currentThreadOwnsTransaction()
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(boolean writeLock)
throws AnzoException
writeLock - true if beginning a transaction that will write data
AnzoException - if there was an error beginning a transaction
public void commit()
throws AnzoException
AnzoException - if currentThread not the owner of transaction, or if no transaction has been started
public void abort()
throws AnzoException
AnzoException - if currentThread not the owner of transaction, or if no transaction has been started
public void beginNonBlocking(boolean writeLock)
throws AnzoException
writeLock - true if this transaction that will write data
AnzoException - if there is already a transaction started, and current thread didn't start it
public void begin(boolean writeLock)
throws AnzoException
writeLock - true if this transaction that will write data
AnzoException - if there was an error beginning transaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||