Added distributed transaction support through a two phase commit protocol
Change-Id: I85d64234a24823fee8b3c2ea830abbb6867dad38
diff --git a/core/api/src/main/java/org/onosproject/store/service/StorageService.java b/core/api/src/main/java/org/onosproject/store/service/StorageService.java
index e165a95..5ea0420 100644
--- a/core/api/src/main/java/org/onosproject/store/service/StorageService.java
+++ b/core/api/src/main/java/org/onosproject/store/service/StorageService.java
@@ -29,13 +29,6 @@
public interface StorageService {
/**
- * Creates a new transaction context.
- *
- * @return transaction context
- */
- TransactionContext createTransactionContext();
-
- /**
* Creates a new EventuallyConsistentMapBuilder.
*
* @param <K> key type
@@ -45,11 +38,11 @@
<K, V> EventuallyConsistentMapBuilder<K, V> eventuallyConsistentMapBuilder();
/**
- * Creates a new EventuallyConsistentMapBuilder.
+ * Creates a new ConsistentMapBuilder.
*
* @param <K> key type
* @param <V> value type
- * @return builder for an eventually consistent map
+ * @return builder for a consistent map
*/
<K, V> ConsistentMapBuilder<K, V> consistentMapBuilder();
@@ -60,4 +53,11 @@
* @return builder for an distributed set
*/
<E> SetBuilder<E> setBuilder();
-}
\ No newline at end of file
+
+ /**
+ * Creates a new transaction context.
+ *
+ * @return transaction context
+ */
+ TransactionContext createTransactionContext();
+}