summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/replicated
diff options
context:
space:
mode:
authorAdam Vandenberg <flangy@gmail.com>2014-03-05 15:55:08 -0800
committerbroneill <bronee@gmail.com>2014-03-06 07:17:24 -0800
commit96d2600cff43f72700c00473bb813ee5c01c30ca (patch)
tree8a591a78d82b8739dd56e6aa975d53fbf3ee824c /src/main/java/com/amazon/carbonado/repo/replicated
parent72df69d2aa512e5a6168df119aecdafd07a251c7 (diff)
Implement AutoCloseable
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/replicated')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/replicated/ReadOnlyTransaction.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/replicated/ReadOnlyTransaction.java b/src/main/java/com/amazon/carbonado/repo/replicated/ReadOnlyTransaction.java
index 1666bf4..d3649ba 100644
--- a/src/main/java/com/amazon/carbonado/repo/replicated/ReadOnlyTransaction.java
+++ b/src/main/java/com/amazon/carbonado/repo/replicated/ReadOnlyTransaction.java
@@ -25,7 +25,7 @@ import com.amazon.carbonado.PersistException;
import com.amazon.carbonado.Transaction;
/**
- * ReadOnlyTransaction wraps an another transaction. It's only function is to
+ * ReadOnlyTransaction wraps an another transaction. Its only function is to
* serve as a marker for the ReplicatedStorage triggers that no write
* operations are allowed.
*
@@ -87,5 +87,10 @@ class ReadOnlyTransaction implements Transaction {
public String toString() {
return "ReadOnlyTransaction wrapping { " + mTxn.toString() + " }";
}
+
+ @Override
+ public void close() throws PersistException {
+ exit();
+ }
}