Class SentinelConfig

java.lang.Object
com.redis.vl.redis.SentinelConfig

public class SentinelConfig extends Object
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

  • Constructor Details

    • SentinelConfig

      public SentinelConfig()
  • Method Details

    • getSentinelHosts

      public List<SentinelConfig.HostPort> getSentinelHosts()
      Get an unmodifiable view of the Sentinel hosts list.
      Returns:
      Unmodifiable list of Sentinel host:port pairs
    • fromUrl

      public static SentinelConfig fromUrl(String url)
      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