LEADER_ELECTOR distributed primitive enum type
Change-Id: I0d11218d0c9e134fb8b63fb24e743169f6b09dc2
diff --git a/core/api/src/main/java/org/onosproject/store/service/DistributedPrimitive.java b/core/api/src/main/java/org/onosproject/store/service/DistributedPrimitive.java
index ed2e9c9..f69a1d3 100644
--- a/core/api/src/main/java/org/onosproject/store/service/DistributedPrimitive.java
+++ b/core/api/src/main/java/org/onosproject/store/service/DistributedPrimitive.java
@@ -56,7 +56,12 @@
/**
* Distributed queue.
*/
- QUEUE
+ QUEUE,
+
+ /**
+ * Leader elector.
+ */
+ LEADER_ELECTOR
}
/**
@@ -85,6 +90,7 @@
* Implementations can override and provide appropriate clean up logic for purging
* any state state associated with the primitive. Whether modifications made within the
* destroy method have local or global visibility is left unspecified.
+ * @return {@code CompletableFuture} that is completed when the operation completes
*/
default CompletableFuture<Void> destroy() {
return CompletableFuture.completedFuture(null);