LEADER_ELECTOR distributed primitive enum type
Change-Id: I0d11218d0c9e134fb8b63fb24e743169f6b09dc2
Showing
1 changed file
with
7 additions
and
1 deletions
... | @@ -56,7 +56,12 @@ public interface DistributedPrimitive { | ... | @@ -56,7 +56,12 @@ public interface DistributedPrimitive { |
56 | /** | 56 | /** |
57 | * Distributed queue. | 57 | * Distributed queue. |
58 | */ | 58 | */ |
59 | - QUEUE | 59 | + QUEUE, |
60 | + | ||
61 | + /** | ||
62 | + * Leader elector. | ||
63 | + */ | ||
64 | + LEADER_ELECTOR | ||
60 | } | 65 | } |
61 | 66 | ||
62 | /** | 67 | /** |
... | @@ -85,6 +90,7 @@ public interface DistributedPrimitive { | ... | @@ -85,6 +90,7 @@ public interface DistributedPrimitive { |
85 | * Implementations can override and provide appropriate clean up logic for purging | 90 | * Implementations can override and provide appropriate clean up logic for purging |
86 | * any state state associated with the primitive. Whether modifications made within the | 91 | * any state state associated with the primitive. Whether modifications made within the |
87 | * destroy method have local or global visibility is left unspecified. | 92 | * destroy method have local or global visibility is left unspecified. |
93 | + * @return {@code CompletableFuture} that is completed when the operation completes | ||
88 | */ | 94 | */ |
89 | default CompletableFuture<Void> destroy() { | 95 | default CompletableFuture<Void> destroy() { |
90 | return CompletableFuture.completedFuture(null); | 96 | return CompletableFuture.completedFuture(null); | ... | ... |
-
Please register or login to post a comment