Package com.redis.vl.redis
Class SentinelConfig
java.lang.Object
com.redis.vl.redis.SentinelConfig
Configuration for Redis Sentinel connections.
Supports the redis+sentinel:// URL scheme for high availability Redis deployments: redis+sentinel://[username:password@]host1:port1,host2:port2/service_name[/db]
Python reference: redisvl/redis/connection.py - _parse_sentinel_url
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a host:port pair for Sentinel nodes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SentinelConfigParse a Sentinel URL into a SentinelConfig.Get an unmodifiable view of the Sentinel hosts list.
-
Constructor Details
-
SentinelConfig
public SentinelConfig()
-
-
Method Details
-
getSentinelHosts
Get an unmodifiable view of the Sentinel hosts list.- Returns:
- Unmodifiable list of Sentinel host:port pairs
-
fromUrl
Parse a Sentinel URL into a SentinelConfig.URL format: redis+sentinel://[username:password@]host1:port1,host2:port2/service_name[/db]
- Parameters:
url- Sentinel URL to parse- Returns:
- Parsed SentinelConfig
- Throws:
IllegalArgumentException- if URL is invalid
-