接口 KafkaConnectionDetails.Configuration
- 封闭接口:
KafkaConnectionDetails
public static interface KafkaConnectionDetails.Configuration
Kafka connection details configuration.
-
方法概要
修饰符和类型方法说明Returns the list of bootstrap servers.default String
Returns the security protocol.default SslBundle
Returns the SSL bundle.Creates a new configuration with the given bootstrap servers.Creates a new configuration with the given bootstrap servers and SSL bundle.Creates a new configuration with the given bootstrap servers, SSL bundle and security protocol.
-
方法详细资料
-
of
Creates a new configuration with the given bootstrap servers.- 参数:
bootstrapServers
- the bootstrap servers- 返回:
- the configuration
-
of
Creates a new configuration with the given bootstrap servers and SSL bundle.- 参数:
bootstrapServers
- the bootstrap serverssslBundle
- the SSL bundle- 返回:
- the configuration
-
of
static KafkaConnectionDetails.Configuration of(List<String> bootstrapServers, SslBundle sslBundle, String securityProtocol) Creates a new configuration with the given bootstrap servers, SSL bundle and security protocol.- 参数:
bootstrapServers
- the bootstrap serverssslBundle
- the SSL bundlesecurityProtocol
- the security protocol- 返回:
- the configuration
-
getBootstrapServers
Returns the list of bootstrap servers.- 返回:
- the list of bootstrap servers
-
getSslBundle
Returns the SSL bundle.- 返回:
- the SSL bundle
-
getSecurityProtocol
Returns the security protocol.- 返回:
- the security protocol
-