|
TrueUpdate Manager Specification 0.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.trueupdate.manager.spec.tx.Transactions
public class Transactions
Provides functions for Transactions.
| Nested Class Summary | |
|---|---|
static class |
Transactions.LoggerConfig
|
static class |
Transactions.Method
|
| Method Summary | |
|---|---|
static void |
execute(Transaction tx)
Executes the given transaction. |
static Transaction |
noOp()
Returns a transaction which does nothing. |
static Transaction |
timed(String message,
Transaction tx,
Transactions.LoggerConfig config)
Wraps the named transaction in another transaction which logs the duration of each transaction method using the given configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void execute(Transaction tx)
throws Exception
TransactionException - if Transaction.rollback() or
Transaction.commit() throw an exception.
IllegalStateException - if this method is called recursively.
Exceptionpublic static Transaction noOp()
public static Transaction timed(String message,
Transaction tx,
Transactions.LoggerConfig config)
|
TrueUpdate Manager Specification 0.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||