Skip to content

Commit

Permalink
Added documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Jun 8, 2014
1 parent 590a133 commit 02e384c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lettuce/src/main/java/com/lambdaworks/redis/RedisFuture.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,13 @@ public interface RedisFuture<V> extends ListenableFuture<V> {
*/
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);
}

0 comments on commit 02e384c

Please sign in to comment.