Interface DataRedisConnectionDetails.Sentinel

Enclosing interface:
DataRedisConnectionDetails

public static interface DataRedisConnectionDetails.Sentinel
Redis sentinel configuration.
Since:
4.0.0
Author:
Moritz Halbritter, Andy Wilkinson
  • Method Details

    • getDatabase

      int getDatabase()
      Database index used by the connection factory.
      Returns:
      the database index used by the connection factory
    • getMaster

      String getMaster()
      Name of the Redis server.
      Returns:
      the name of the Redis server
    • getNodes

      List of nodes.
      Returns:
      the list of nodes
    • getUsername

      @Nullable String getUsername()
      Login username for authenticating with sentinel(s).
      Returns:
      the login username for authenticating with sentinel(s) or null
    • getPassword

      @Nullable String getPassword()
      Password for authenticating with sentinel(s).
      Returns:
      the password for authenticating with sentinel(s) or null