- All Superinterfaces:
Iterable<T>
public interface Executions<T> extends Iterable<T>
Result holder for a command that was executed synchronously on multiple nodes.
- Since:
- 4.0
- Author:
- Mark Paluch
-
Method Summary
Modifier and Type Method Description Map<RedisClusterNode,T>asMap()Tget(RedisClusterNode redisClusterNode)default Iterator<T>iterator()Collection<RedisClusterNode>nodes()default Spliterator<T>spliterator()default Stream<T>stream()
-
Method Details
-
asMap
Map<RedisClusterNode,T> asMap()- Returns:
- map between
RedisClusterNodeand theCompletionStage
-
nodes
Collection<RedisClusterNode> nodes()- Returns:
- collection of nodes on which the command was executed.
-
get
- Parameters:
redisClusterNode- the node- Returns:
- the completion stage for this node
-
iterator
- Specified by:
iteratorin interfaceIterable<T>- Returns:
- iterator over the
CompletionStages
-
spliterator
- Specified by:
spliteratorin interfaceIterable<T>- Returns:
- a
Spliteratorover the elements in this collection
-
stream
- Returns:
- a sequential
Streamover the elements in this collection
-