Interface ValkeyConnectionDetails.Sentinel
- Enclosing interface:
- ValkeyConnectionDetails
public static interface ValkeyConnectionDetails.Sentinel
Valkey sentinel configuration.
-
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 Valkey server.- Returns:
- the name of the Valkey server
-
getNodes
List<ValkeyConnectionDetails.Node> 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
-