Package io.vertx.redis.client
Class RequestGrouping
- java.lang.Object
-
- io.vertx.redis.client.RequestGrouping
-
public class RequestGrouping extends Object
A result ofRedisCluster.groupByNodes(List)
.- See Also:
getKeyed()
,getUnkeyed()
-
-
Constructor Summary
Constructors Constructor Description RequestGrouping()
RequestGrouping(Collection<List<Request>> keyed, List<Request> unkeyed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<List<Request>>
getKeyed()
Returns a collection of request groups such that all requests in each group are guaranteed to be sent to the same master node.List<Request>
getUnkeyed()
Returns a collection of requests that do not specify a key and would therefore be executed on random node.
-
-
-
Constructor Detail
-
RequestGrouping
public RequestGrouping()
-
RequestGrouping
public RequestGrouping(Collection<List<Request>> keyed, List<Request> unkeyed)
-
-
Method Detail
-
getKeyed
public Collection<List<Request>> getKeyed()
Returns a collection of request groups such that all requests in each group are guaranteed to be sent to the same master node.Does not include any request that doesn't specify a key; use
getUnkeyed()
to get those.
-
-