Interface ValkeyConnectionDetails
- All Superinterfaces:
org.springframework.boot.autoconfigure.service.connection.ConnectionDetails
public interface ValkeyConnectionDetails
extends org.springframework.boot.autoconfigure.service.connection.ConnectionDetails
Details required to establish a connection to a Valkey service.
- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceValkey cluster configuration.static interfaceValkey master replica configuration.static final recordA node in a sentinel or cluster configuration.static interfaceValkey sentinel configuration.static interfaceValkey standalone configuration. -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable ValkeyConnectionDetails.ClusterValkey cluster configuration.default @Nullable ValkeyConnectionDetails.MasterReplicaValkey master replica configuration.default @Nullable StringLogin password of the Valkey server.default @Nullable ValkeyConnectionDetails.SentinelValkey sentinel configuration.default @Nullable org.springframework.boot.ssl.SslBundleSSL bundle to use.default @Nullable ValkeyConnectionDetails.StandaloneValkey standalone configuration.default @Nullable StringLogin username of the Valkey server.
-
Method Details
-
getUsername
Login username of the Valkey server.- Returns:
- the login username of the Valkey server
-
getPassword
Login password of the Valkey server.- Returns:
- the login password of the Valkey server
-
getSslBundle
default @Nullable org.springframework.boot.ssl.SslBundle getSslBundle()SSL bundle to use.- Returns:
- the SSL bundle to use
-
getStandalone
Valkey standalone configuration. Mutually exclusive withgetSentinel(),getCluster()andgetMasterReplica().- Returns:
- the Valkey standalone configuration
-
getSentinel
Valkey sentinel configuration. Mutually exclusive withgetStandalone(),getCluster()andgetMasterReplica().- Returns:
- the Valkey sentinel configuration
-
getCluster
Valkey cluster configuration. Mutually exclusive withgetStandalone(),getSentinel()andgetMasterReplica().- Returns:
- the Valkey cluster configuration
-
getMasterReplica
Valkey master replica configuration. Mutually exclusive withgetStandalone(),getSentinel()andgetCluster().- Returns:
- the Valkey master replica configuration
-