Package org.redisson.connection.balancer
Class BaseLoadBalancer
java.lang.Object
org.redisson.connection.balancer.BaseLoadBalancer
- All Implemented Interfaces:
LoadBalancer
- Direct Known Subclasses:
RandomLoadBalancer,RoundRobinLoadBalancer
- Author:
- Nikita Koksharov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ClientConnectionsEntry> filter(List<ClientConnectionsEntry> entries) protected final List<ClientConnectionsEntry> filter(List<ClientConnectionsEntry> entries, Pattern pattern) voidDefines a regular expression pattern to filter hostnamesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.redisson.connection.balancer.LoadBalancer
getEntry, getEntry
-
Constructor Details
-
BaseLoadBalancer
public BaseLoadBalancer()
-
-
Method Details
-
setRegex
Defines a regular expression pattern to filter hostnames- Parameters:
value- regular expression
-
filter
-
filter
protected final List<ClientConnectionsEntry> filter(List<ClientConnectionsEntry> entries, Pattern pattern)
-