public class LettuceFutures extends Object
Modifier and Type | Method and Description |
---|---|
static <K,V,T> T |
await(RedisCommand<K,V,T> cmd,
long timeout,
TimeUnit unit)
Wait until futures are complete or the supplied timeout is reached.
|
static boolean |
awaitAll(long timeout,
TimeUnit unit,
Future<?>... futures)
Wait until futures are complete or the supplied timeout is reached.
|
public static boolean awaitAll(long timeout, TimeUnit unit, Future<?>... futures)
timeout
- Maximum time to wait for futures to complete.unit
- Unit of time for the timeout.futures
- Futures to wait for.public static <K,V,T> T await(RedisCommand<K,V,T> cmd, long timeout, TimeUnit unit)
K
- Key type.V
- Value type.T
- Result type.cmd
- Command to wait for.timeout
- Maximum time to wait for futures to complete.unit
- Unit of time for the timeout.unit
- Unit of time for the timeout.Copyright © 2015. All rights reserved.