diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2006-11-04 17:44:21 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2006-11-04 17:44:21 +0000 |
commit | 0a78be150e162aad34c19f233dc2f4ca71f61135 (patch) | |
tree | af6a18cac0541894b16a72782f3fb50f59c533a9 /src/main/java/com/amazon/carbonado/spi | |
parent | 9e4cd7e3af4ff5326fcb7a1dde3861f64badab41 (diff) |
Support transaction isolation level of "none".
Diffstat (limited to 'src/main/java/com/amazon/carbonado/spi')
-rw-r--r-- | src/main/java/com/amazon/carbonado/spi/TransactionManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/spi/TransactionManager.java b/src/main/java/com/amazon/carbonado/spi/TransactionManager.java index 144b411..e8cc637 100644 --- a/src/main/java/com/amazon/carbonado/spi/TransactionManager.java +++ b/src/main/java/com/amazon/carbonado/spi/TransactionManager.java @@ -304,6 +304,8 @@ public abstract class TransactionManager<Txn> { *
* @param parent optional parent transaction
* @param level required isolation level
+ * @return new transaction, parent transaction, or possibly null if required
+ * isolation level is none
*/
protected abstract Txn createTxn(Txn parent, IsolationLevel level) throws Exception;
@@ -320,6 +322,8 @@ public abstract class TransactionManager<Txn> { * @param level required isolation level
* @param timeout desired timeout for lock acquisition, never negative
* @param unit timeout unit, never null
+ * @return new transaction, parent transaction, or possibly null if required
+ * isolation level is none
*/
protected Txn createTxn(Txn parent, IsolationLevel level,
int timeout, TimeUnit unit)
|