Add some javadoc for async get
@@ -17,7 +17,6 @@ package org.apache.fluo.api.client;
import java.util.Collection;
import java.util.Map;
-import java.util.PriorityQueue;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
@@ -169,21 +168,39 @@ public interface SnapshotBase {
*/
long getStartTimestamp();
+ /**
+ * Asynchronous get, may retrieve the value in the background and return immediately.
+ *
+ * @since 2.0.0
+ */
default CompletableFuture<String> getsAsync(String row, Column column) {
return CompletableFuture.completedFuture(gets(row, column));
}
+ /**
+ * Asynchronous get, may retrieve the value in the background and return immediately.
+ *
+ * @since 2.0.0
+ */
default CompletableFuture<String> getsAsync(String row, Column column, String defaultValue) {
return CompletableFuture.completedFuture(gets(row, column, defaultValue));
}
+ /**
+ * Asynchronous get, may retrieve the value in the background and return immediately.
+ *
+ * @since 2.0.0
+ */
default CompletableFuture<Bytes> getAsync(Bytes row, Column column) {
return CompletableFuture.completedFuture(get(row, column));
}
+ /**
+ * Asynchronous get, may retrieve the value in the background and return immediately.
+ *
+ * @since 2.0.0
+ */
default CompletableFuture<Bytes> getAsync(Bytes row, Column column, Bytes defaultValue) {
return CompletableFuture.completedFuture(get(row, column, defaultValue));
}
-
-
}
