Cleaned up sal-common-* to common folder
[mdsal.git] / common / mdsal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / TransactionStatus.java
diff --git a/common/mdsal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/TransactionStatus.java b/common/mdsal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/TransactionStatus.java
new file mode 100644 (file)
index 0000000..a8989c4
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.controller.md.sal.common.api;
+
+public enum TransactionStatus {
+    /**
+     * The transaction has been freshly allocated. The user is still accessing
+     * it and it has not been sealed.
+     */
+    NEW,
+    /**
+     * The transaction has been completed by the user and sealed. It is currently
+     * awaiting execution.
+     */
+    SUBMITED,
+    /**
+     * The transaction has been successfully committed to backing store.
+     */
+    COMMITED,
+    /**
+     * The transaction has failed to commit due to some underlying issue.
+     */
+    FAILED,
+    /**
+     * Currently unused.
+     */
+    CANCELED,
+}