public static interface MultiDbConfig.StrategySupplier
HealthCheckStrategy instances for specific Redis
endpoints.
This supplier pattern allows for flexible health check strategy creation, enabling different strategies for different endpoints or dynamic configuration based on endpoint characteristics.
Common Implementations:
PingStrategy.DEFAULT - Uses Redis PING command for health
checksHealthCheckStrategy,
PingStrategy,
LagAwareStrategy| Modifier and Type | Method and Description |
|---|---|
HealthCheckStrategy |
get(HostAndPort hostAndPort,
JedisClientConfig jedisClientConfig)
Creates a
HealthCheckStrategy instance for the specified Redis endpoint. |
HealthCheckStrategy get(HostAndPort hostAndPort, JedisClientConfig jedisClientConfig)
HealthCheckStrategy instance for the specified Redis endpoint.hostAndPort - the Redis endpoint (host and port) to create a health check strategy forjedisClientConfig - the Jedis client configuration containing connection settings,
authentication, and other client parameters. May be null for implementations that
don't require client configurationHealthCheckStrategy instance for monitoring the specified
endpointjava.lang.IllegalArgumentException - if the hostAndPort is null or invalidCopyright © 2025. All rights reserved.