2022-01-13 01:59:26 +01:00
|
|
|
package it.tdlight.reactiveapi;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
2022-01-13 16:19:10 +01:00
|
|
|
public record KafkaParameters(String groupId, String clientId, String bootstrapServers) {
|
2022-01-13 01:59:26 +01:00
|
|
|
|
|
|
|
public KafkaParameters(ClusterSettings clusterSettings, String clientId) {
|
2022-01-13 16:19:10 +01:00
|
|
|
this(clientId, clientId, String.join(",", clusterSettings.kafkaBootstrapServers));
|
2022-01-13 01:59:26 +01:00
|
|
|
}
|
|
|
|
}
|