public class MultiNodeExecution extends Object
| Constructor and Description |
|---|
MultiNodeExecution() |
| Modifier and Type | Method and Description |
|---|---|
static RedisFuture<Long> |
aggregateAsync(Map<?,? extends CompletionStage<Long>> executions)
Aggregate (sum) results of the
RedisFutures. |
static RedisFuture<String> |
alwaysOkOfAsync(Map<?,? extends CompletionStage<String>> executions)
Returns always OK and guarantee that all futures are finished.
|
static <T> T |
execute(Callable<T> function) |
static <T> RedisFuture<T> |
firstOfAsync(Map<?,? extends CompletionStage<T>> executions)
Returns the result of the first
RedisFuture and guarantee that all futures are finished. |
static <T> RedisFuture<T> |
lastOfAsync(Map<?,? extends CompletionStage<T>> executions)
Returns the result of the last
RedisFuture and guarantee that all futures are finished. |
public static <T> T execute(Callable<T> function)
public static RedisFuture<Long> aggregateAsync(Map<?,? extends CompletionStage<Long>> executions)
RedisFutures.executions - mapping of a key to the futurepublic static <T> RedisFuture<T> firstOfAsync(Map<?,? extends CompletionStage<T>> executions)
RedisFuture and guarantee that all futures are finished.T - result typeexecutions - mapping of a key to the futurepublic static <T> RedisFuture<T> lastOfAsync(Map<?,? extends CompletionStage<T>> executions)
RedisFuture and guarantee that all futures are finished.T - result typeexecutions - mapping of a key to the futurepublic static RedisFuture<String> alwaysOkOfAsync(Map<?,? extends CompletionStage<String>> executions)
executions - mapping of a key to the futureCopyright © 2022 lettuce.io. All rights reserved.