Committed by
Gerrit Code Review
Fixes javadoc errors
Change-Id: I85027b75520cb2087f177d282e2f5a5ec28d1b6a
Showing
2 changed files
with
3 additions
and
2 deletions
| ... | @@ -113,6 +113,7 @@ public interface AsyncDocumentTree<V> extends DistributedPrimitive { | ... | @@ -113,6 +113,7 @@ public interface AsyncDocumentTree<V> extends DistributedPrimitive { |
| 113 | * | 113 | * |
| 114 | * @param path path to root of subtree to monitor for updates | 114 | * @param path path to root of subtree to monitor for updates |
| 115 | * @param listener listener to be notified | 115 | * @param listener listener to be notified |
| 116 | + * @return a future that is completed when the operation completes | ||
| 116 | */ | 117 | */ |
| 117 | CompletableFuture<Void> addListener(DocumentPath path, DocumentTreeListener<V> listener); | 118 | CompletableFuture<Void> addListener(DocumentPath path, DocumentTreeListener<V> listener); |
| 118 | 119 | ||
| ... | @@ -120,6 +121,7 @@ public interface AsyncDocumentTree<V> extends DistributedPrimitive { | ... | @@ -120,6 +121,7 @@ public interface AsyncDocumentTree<V> extends DistributedPrimitive { |
| 120 | * Unregisters a previously added listener. | 121 | * Unregisters a previously added listener. |
| 121 | * | 122 | * |
| 122 | * @param listener listener to unregister | 123 | * @param listener listener to unregister |
| 124 | + * @return a future that is completed when the operation completes | ||
| 123 | */ | 125 | */ |
| 124 | CompletableFuture<Void> removeListener(DocumentTreeListener<V> listener); | 126 | CompletableFuture<Void> removeListener(DocumentTreeListener<V> listener); |
| 125 | 127 | ||
| ... | @@ -127,6 +129,7 @@ public interface AsyncDocumentTree<V> extends DistributedPrimitive { | ... | @@ -127,6 +129,7 @@ public interface AsyncDocumentTree<V> extends DistributedPrimitive { |
| 127 | * Registers a listener to be notified when the tree is modified. | 129 | * Registers a listener to be notified when the tree is modified. |
| 128 | * | 130 | * |
| 129 | * @param listener listener to be notified | 131 | * @param listener listener to be notified |
| 132 | + * @return a future that is completed when the operation completes | ||
| 130 | */ | 133 | */ |
| 131 | default CompletableFuture<Void> addListener(DocumentTreeListener<V> listener) { | 134 | default CompletableFuture<Void> addListener(DocumentTreeListener<V> listener) { |
| 132 | return addListener(root(), listener); | 135 | return addListener(root(), listener); | ... | ... |
| ... | @@ -33,8 +33,6 @@ import com.google.common.collect.Maps; | ... | @@ -33,8 +33,6 @@ import com.google.common.collect.Maps; |
| 33 | * <p> | 33 | * <p> |
| 34 | * This implementation delegates execution to a backing tree implemented on top of Atomix framework. | 34 | * This implementation delegates execution to a backing tree implemented on top of Atomix framework. |
| 35 | * | 35 | * |
| 36 | - * @See AtomixDocumentTree | ||
| 37 | - * | ||
| 38 | * @param <V> tree node value type. | 36 | * @param <V> tree node value type. |
| 39 | */ | 37 | */ |
| 40 | public class DefaultDistributedDocumentTree<V> implements AsyncDocumentTree<V> { | 38 | public class DefaultDistributedDocumentTree<V> implements AsyncDocumentTree<V> { | ... | ... |
-
Please register or login to post a comment