Deprecated API
Contents
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionSince 3.3.0, in order to use default partitioning logic remove the
partitioner.classconfiguration setting and setpartitioner.ignore.keys=true. See KIP-794 for more info. The partitioning strategy:- If a partition is specified in the record, use it
- Otherwise choose the sticky partition that changes when the batch is full. NOTE: In contrast to the DefaultPartitioner, the record key is NOT used as part of the partitioning strategy in this partitioner. Records with the same key are not guaranteed to be sent to the same partition. See KIP-480 for details about sticky partitioning.
-
Deprecated FieldsFieldDescriptionchecksums are no longer exposed by this class, this constant will be removed in Apache Kafka 4.0 (deprecated since 3.0).
-
Deprecated MethodsMethodDescriptionSince 2.3. Use
Admin.incrementalAlterConfigs(Map).Since 2.3. UseAdmin.incrementalAlterConfigs(Map, AlterConfigsOptions).Since 3.0 useDeleteTopicsResult.topicNameValues()insteadDeprecated Since Kafka 2.7. UseDescribeLogDirsResult.allDescriptions().Deprecated Since Kafka 2.7. UseDescribeLogDirsResult.descriptions().Since 3.1.0 useDescribeTopicsResult.allTopicNames()insteadSince 3.1.0 useDescribeTopicsResult.topicNameValues()insteadSince 3.3. UseAdmin.listConsumerGroupOffsets(java.util.Map, ListConsumerGroupOffsetsOptions)to specify topic partitions.org.apache.kafka.clients.admin.ListConsumerGroupOffsetsOptions.topicPartitions(List<TopicPartition>) Since 3.3. UseAdmin.listConsumerGroupOffsets(java.util.Map, ListConsumerGroupOffsetsOptions)to specify topic partitions.since 2.4 UseKafkaConsumer.committed(Set)insteadsince 2.4 UseKafkaConsumer.committed(Set, Duration)insteadSince 2.0. UseKafkaConsumer.poll(Duration), which does not block beyond the timeout awaiting partition assignment. See KIP-266 for more information.UseMockConsumer.setPollException(KafkaException)insteadSince 3.0.0, please useKafkaProducer.sendOffsetsToTransaction(Map, ConsumerGroupMetadata)instead.Since 3.3.0
-
Deprecated ConstructorsConstructorDescriptionuse
RpcClient(RpcClientParams)instead, will be removed in 6.0.0useRpcClient(RpcClientParams)instead, will be removed in 6.0.0useRpcClient(RpcClientParams)instead, will be removed in 6.0.0useRpcClient(RpcClientParams)instead, will be removed in 6.0.0Since 3.0 useTopicListing(String, Uuid, boolean)insteaduse one of the constructors without a `checksum` parameter. This constructor will be removed in Apache Kafka 4.0 (deprecated since 3.0).use one of the constructors without a `checksum` parameter. This constructor will be removed in Apache Kafka 4.0 (deprecated since 3.0).use one of the constructors without a `checksum` parameter. This constructor will be removed in Apache Kafka 4.0 (deprecated since 3.0).use constructor without `checksum` parameter. This constructor will be removed in Apache Kafka 4.0 (deprecated since 3.0).