| Package | Description |
|---|---|
| org.apache.flink.connector.kafka.sink |
| Modifier and Type | Method and Description |
|---|---|
static <IN> KafkaSinkBuilder<IN> |
KafkaSink.builder()
Create a
KafkaSinkBuilder to construct a new KafkaSink. |
KafkaSinkBuilder<IN> |
KafkaSinkBuilder.setBootstrapServers(String bootstrapServers)
Sets the Kafka bootstrap servers.
|
KafkaSinkBuilder<IN> |
KafkaSinkBuilder.setDeliverGuarantee(org.apache.flink.connector.base.DeliveryGuarantee deliveryGuarantee)
Sets the wanted the
DeliveryGuarantee. |
KafkaSinkBuilder<IN> |
KafkaSinkBuilder.setKafkaProducerConfig(Properties kafkaProducerConfig)
Sets the configuration which used to instantiate all used
KafkaProducer. |
KafkaSinkBuilder<IN> |
KafkaSinkBuilder.setRecordSerializer(KafkaRecordSerializationSchema<IN> recordSerializer)
Sets the
KafkaRecordSerializationSchema that transforms incoming records to ProducerRecords. |
KafkaSinkBuilder<IN> |
KafkaSinkBuilder.setTransactionalIdPrefix(String transactionalIdPrefix)
Sets the prefix for all created transactionalIds if
DeliveryGuarantee.EXACTLY_ONCE is
configured. |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.