| Package | Description |
|---|---|
| com.lambdaworks.redis.cluster |
Client for Redis Cluster, see
RedisClusterClient. |
| com.lambdaworks.redis.cluster.api |
Redis Cluster connection API.
|
| com.lambdaworks.redis.cluster.api.async |
Redis Cluster API for asynchronous executed commands.
|
| com.lambdaworks.redis.cluster.api.sync |
Redis Cluster API for synchronous executed commands.
|
| com.lambdaworks.redis.cluster.event |
Cluster event types.
|
| com.lambdaworks.redis.cluster.models.partitions |
Model and parser for the
CLUSTER NODES and CLUSTER SLAVES output. |
| com.lambdaworks.redis.cluster.models.slots |
Model and parser for the
CLUSTER SLOTS output. |
| com.lambdaworks.redis.cluster.topology |
Support for cluster topology refresh.
|
| Modifier and Type | Method and Description |
|---|---|
RedisClusterNode |
NodeSelectionSupport.node(int index)
Get the
RedisClusterNode. |
| Modifier and Type | Method and Description |
|---|---|
Map<RedisClusterNode,API> |
NodeSelectionSupport.asMap() |
| Modifier and Type | Method and Description |
|---|---|
Map<RedisClusterNode,CompletionStage<T>> |
AsyncExecutions.asMap() |
Collection<RedisClusterNode> |
AsyncExecutions.nodes() |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<T> |
AsyncExecutions.get(RedisClusterNode redisClusterNode) |
| Modifier and Type | Method and Description |
|---|---|
AsyncNodeSelection<K,V> |
RedisAdvancedClusterAsyncCommands.nodes(java.util.function.Predicate<RedisClusterNode> predicate)
Select nodes by a predicate and keeps a static selection.
|
AsyncNodeSelection<K,V> |
RedisAdvancedClusterAsyncCommands.nodes(java.util.function.Predicate<RedisClusterNode> predicate,
boolean dynamic)
Select nodes by a predicate
|
AsyncNodeSelection<K,V> |
RedisAdvancedClusterAsyncCommands.readonly(java.util.function.Predicate<RedisClusterNode> predicate)
Select slave nodes by a predicate and keeps a static selection.
|
default AsyncNodeSelection<K,V> |
RedisAdvancedClusterAsyncCommands.slaves(java.util.function.Predicate<RedisClusterNode> predicate)
Select all slaves.
|
| Modifier and Type | Method and Description |
|---|---|
Map<RedisClusterNode,T> |
Executions.asMap() |
Collection<RedisClusterNode> |
Executions.nodes() |
| Modifier and Type | Method and Description |
|---|---|
T |
Executions.get(RedisClusterNode redisClusterNode) |
| Modifier and Type | Method and Description |
|---|---|
NodeSelection<K,V> |
RedisAdvancedClusterCommands.nodes(java.util.function.Predicate<RedisClusterNode> predicate)
Select nodes by a predicate and keeps a static selection.
|
NodeSelection<K,V> |
RedisAdvancedClusterCommands.nodes(java.util.function.Predicate<RedisClusterNode> predicate,
boolean dynamic)
Select nodes by a predicate
|
NodeSelection<K,V> |
RedisAdvancedClusterCommands.readonly(java.util.function.Predicate<RedisClusterNode> predicate)
Select slave nodes by a predicate and keeps a static selection.
|
default NodeSelection<K,V> |
RedisAdvancedClusterCommands.slaves(java.util.function.Predicate<RedisClusterNode> predicate)
Select all slaves.
|
| Modifier and Type | Method and Description |
|---|---|
List<RedisClusterNode> |
ClusterTopologyChangedEvent.after()
Returns the cluster topology view after the topology changed.
|
List<RedisClusterNode> |
ClusterTopologyChangedEvent.before()
Returns the cluster topology view before the topology changed.
|
| Constructor and Description |
|---|
ClusterTopologyChangedEvent(List<RedisClusterNode> before,
List<RedisClusterNode> after)
Creates a new
ClusterTopologyChangedEvent. |
ClusterTopologyChangedEvent(List<RedisClusterNode> before,
List<RedisClusterNode> after)
Creates a new
ClusterTopologyChangedEvent. |
| Modifier and Type | Method and Description |
|---|---|
RedisClusterNode |
Partitions.getPartition(int index)
Returns the
RedisClusterNode at index. |
RedisClusterNode |
Partitions.getPartitionByNodeId(String nodeId)
Retrieve a
RedisClusterNode by its node id. |
RedisClusterNode |
Partitions.getPartitionBySlot(int slot)
Retrieve a
RedisClusterNode by its slot number. |
static RedisClusterNode |
RedisClusterNode.of(String nodeId)
Create a new instance of
RedisClusterNode by passing the nodeId |
| Modifier and Type | Method and Description |
|---|---|
List<RedisClusterNode> |
Partitions.getPartitions()
Returns the internal
List of RedisClusterNode that holds the partition source. |
Iterator<RedisClusterNode> |
Partitions.iterator()
Returns an iterator over the
nodes in this Partitions from the read-view. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Partitions.add(RedisClusterNode redisClusterNode)
Adds the
RedisClusterNode to this Partitions. |
void |
Partitions.addPartition(RedisClusterNode partition)
Adds a partition without updating the read view/cache.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Partitions.addAll(Collection<? extends RedisClusterNode> c)
Add all
nodes from the given collection and update the read-view/caches. |
void |
Partitions.reload(List<RedisClusterNode> partitions)
Update partitions and rebuild slot cache.
|
| Constructor and Description |
|---|
RedisClusterNode(RedisClusterNode redisClusterNode) |
| Modifier and Type | Method and Description |
|---|---|
RedisClusterNode |
ClusterSlotRange.getMasterNode() |
| Modifier and Type | Method and Description |
|---|---|
List<RedisClusterNode> |
ClusterSlotRange.getSlaveNodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
ClusterSlotRange.setMasterNode(RedisClusterNode masterNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
ClusterSlotRange.setSlaveNodes(List<RedisClusterNode> slaveNodes) |
| Constructor and Description |
|---|
ClusterSlotRange(int from,
int to,
RedisClusterNode masterNode,
List<RedisClusterNode> slaveNodes)
Constructs a
ClusterSlotRange |
| Constructor and Description |
|---|
ClusterSlotRange(int from,
int to,
RedisClusterNode masterNode,
List<RedisClusterNode> slaveNodes)
Constructs a
ClusterSlotRange |
| Modifier and Type | Method and Description |
|---|---|
static List<RedisClusterNode> |
TopologyComparators.predefinedSort(Iterable<RedisClusterNode> clusterNodes,
Iterable<RedisURI> fixedOrder)
Sort partitions by a
fixedOrder and by RedisURI. |
static List<RedisClusterNode> |
TopologyComparators.sortByClientCount(Iterable<RedisClusterNode> clusterNodes)
Sort partitions by client count.
|
static List<RedisClusterNode> |
TopologyComparators.sortByLatency(Iterable<RedisClusterNode> clusterNodes)
Sort partitions by latency.
|
static List<RedisClusterNode> |
TopologyComparators.sortByUri(Iterable<RedisClusterNode> clusterNodes)
Sort partitions by RedisURI.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RedisClusterNode> |
TopologyComparators.predefinedSort(Iterable<RedisClusterNode> clusterNodes,
Iterable<RedisURI> fixedOrder)
Sort partitions by a
fixedOrder and by RedisURI. |
static List<RedisClusterNode> |
TopologyComparators.sortByClientCount(Iterable<RedisClusterNode> clusterNodes)
Sort partitions by client count.
|
static List<RedisClusterNode> |
TopologyComparators.sortByLatency(Iterable<RedisClusterNode> clusterNodes)
Sort partitions by latency.
|
static List<RedisClusterNode> |
TopologyComparators.sortByUri(Iterable<RedisClusterNode> clusterNodes)
Sort partitions by RedisURI.
|
Copyright © 2016. All rights reserved.