Interface KafkaConnectionDetails.Configuration
- Enclosing interface:
KafkaConnectionDetails
public static interface KafkaConnectionDetails.Configuration
Kafka connection details configuration.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of bootstrap servers.default @Nullable StringReturns the security protocol.default @Nullable org.springframework.boot.ssl.SslBundleReturns the SSL bundle.Creates a new configuration with the given bootstrap servers.of(List<String> bootstrapServers, @Nullable org.springframework.boot.ssl.SslBundle sslBundle, @Nullable String securityProtocol) Creates a new configuration with the given bootstrap servers, SSL bundle and security protocol.Creates a new configuration with the given bootstrap servers and SSL bundle.
-
Method Details
-
of
Creates a new configuration with the given bootstrap servers.- Parameters:
bootstrapServers- the bootstrap servers- Returns:
- the configuration
-
of
static KafkaConnectionDetails.Configuration of(List<String> bootstrapServers, org.springframework.boot.ssl.SslBundle sslBundle) Creates a new configuration with the given bootstrap servers and SSL bundle.- Parameters:
bootstrapServers- the bootstrap serverssslBundle- the SSL bundle- Returns:
- the configuration
-
of
static KafkaConnectionDetails.Configuration of(List<String> bootstrapServers, @Nullable org.springframework.boot.ssl.SslBundle sslBundle, @Nullable String securityProtocol) Creates a new configuration with the given bootstrap servers, SSL bundle and security protocol.- Parameters:
bootstrapServers- the bootstrap serverssslBundle- the SSL bundlesecurityProtocol- the security protocol- Returns:
- the configuration
-
getBootstrapServers
-
getSslBundle
default @Nullable org.springframework.boot.ssl.SslBundle getSslBundle()Returns the SSL bundle.- Returns:
- the SSL bundle
-
getSecurityProtocol
Returns the security protocol.- Returns:
- the security protocol
-