From 02e384ce40f9ac3bb1bb4630992b35705a2e5f4a Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Sun, 8 Jun 2014 15:52:55 +0200 Subject: [PATCH] Added documentation. --- .../src/main/java/com/lambdaworks/redis/RedisFuture.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lettuce/src/main/java/com/lambdaworks/redis/RedisFuture.java b/lettuce/src/main/java/com/lambdaworks/redis/RedisFuture.java index 8f37e38516..39260f8c1b 100644 --- a/lettuce/src/main/java/com/lambdaworks/redis/RedisFuture.java +++ b/lettuce/src/main/java/com/lambdaworks/redis/RedisFuture.java @@ -20,5 +20,13 @@ public interface RedisFuture extends ListenableFuture { */ String getError(); + /** + * Wait up to the specified time for the command output to become available. + * + * @param timeout Maximum time to wait for a result. + * @param unit Unit of time for the timeout. + * + * @return true if the output became available. + */ boolean await(long timeout, TimeUnit unit); }