Skip navigation links
Spring for Apache Kafka
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Interfaces
  • Classes
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.kafka.config.StreamsBuilderFactoryBeanCustomizer
    in favor of StreamsBuilderFactoryBeanConfigurer due to a name clash with a similar class in Spring Boot.
  • Deprecated Classes
    Class
    Description
    org.springframework.kafka.listener.adapter.RetryingMessageListenerAdapter
    since 2.8 - use a suitably configured error handler instead.
    org.springframework.kafka.listener.BatchLoggingErrorHandler
    - use the CommonLoggingErrorHandler instead.
    org.springframework.kafka.listener.ConditionalDelegatingBatchErrorHandler
    in favor of CommonDelegatingErrorHandler.
    org.springframework.kafka.listener.ConditionalDelegatingErrorHandler
    in favor of CommonDelegatingErrorHandler.
    org.springframework.kafka.listener.ContainerStoppingBatchErrorHandler
    in favor of CommonContainerStoppingErrorHandler.
    org.springframework.kafka.listener.ContainerStoppingErrorHandler
    in favor of CommonContainerStoppingErrorHandler.
    org.springframework.kafka.listener.LoggingErrorHandler
    - use the CommonLoggingErrorHandler instead.
    org.springframework.kafka.listener.RecoveringBatchErrorHandler
    in favor of DefaultErrorHandler.
    org.springframework.kafka.listener.SeekToCurrentBatchErrorHandler
    with no replacement - use DefaultErrorHandler with an infinite BackOff.
    org.springframework.kafka.listener.SeekToCurrentErrorHandler
    in favor of DefaultErrorHandler.
    org.springframework.kafka.transaction.ChainedKafkaTransactionManager
    Refer to the ChainedTransactionManager javadocs.
  • Deprecated Fields
    Field
    Description
    org.springframework.kafka.retrytopic.RetryTopicInternalBeanNames.DEAD_LETTER_PUBLISHING_RECOVERER_PROVIDER_NAME
    in favor of RetryTopicInternalBeanNames.DEAD_LETTER_PUBLISHING_RECOVERER_FACTORY_BEAN_NAME
    org.springframework.kafka.support.serializer.ErrorHandlingDeserializer.KEY_DESERIALIZER_EXCEPTION_HEADER
    in favor of SerializationUtils.KEY_DESERIALIZER_EXCEPTION_HEADER.
    org.springframework.kafka.support.serializer.ErrorHandlingDeserializer.KEY_DESERIALIZER_EXCEPTION_HEADER_PREFIX
    in favor of SerializationUtils.DESERIALIZER_EXCEPTION_HEADER_PREFIX.
    org.springframework.kafka.support.serializer.ErrorHandlingDeserializer.VALUE_DESERIALIZER_EXCEPTION_HEADER
    in favor of SerializationUtils.VALUE_DESERIALIZER_EXCEPTION_HEADER.
  • Deprecated Methods
    Method
    Description
    org.springframework.kafka.config.AbstractKafkaListenerContainerFactory.setRetryTemplate(RetryTemplate)
    since 2.8 - use a suitably configured error handler instead.
    org.springframework.kafka.config.AbstractKafkaListenerEndpoint.setRetryTemplate(RetryTemplate)
    since 2.8 - use a suitably configured error handler instead.
    org.springframework.kafka.config.StreamsBuilderFactoryBean.setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler)
    in favor of StreamsBuilderFactoryBean.setStreamsUncaughtExceptionHandler(StreamsUncaughtExceptionHandler).
    org.springframework.kafka.core.KafkaOperations.sendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata>)
    in the 3.0.0 KafkaProducer.
    org.springframework.kafka.core.KafkaOperations.sendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata>, String)
    in the 3.0.0 KafkaProducer.
    org.springframework.kafka.core.KafkaTemplate.sendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata>)
    org.springframework.kafka.core.KafkaTemplate.sendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata>, String)
    org.springframework.kafka.core.reactive.ReactiveKafkaProducerTemplate.flush()
    - flush does not make sense in the context of a reactive flow since, the send completion signal is a send result, which implies that a flush is redundant. If you use this method with reactor-kafka 1.3 or later, it must be scheduled to avoid a deadlock; see https://issues.apache.org/jira/browse/KAFKA-10790 (since 2.7).
    org.springframework.kafka.core.RoutingKafkaTemplate.sendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata>)
    org.springframework.kafka.core.RoutingKafkaTemplate.sendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata>, String)
    org.springframework.kafka.listener.ConsumerProperties.getAuthorizationExceptionRetryInterval()
    in favor of ConsumerProperties.getAuthExceptionRetryInterval().
    org.springframework.kafka.listener.ConsumerProperties.setAuthorizationExceptionRetryInterval(Duration)
    in favor of ConsumerProperties.setAuthExceptionRetryInterval(Duration).
    org.springframework.kafka.listener.ContainerProperties.getConsumerStartTimout()
    org.springframework.kafka.listener.ContainerProperties.setConsumerStartTimout(Duration)
    org.springframework.kafka.listener.DeadLetterPublishingRecoverer.setReplaceOriginalHeaders(boolean)
    in favor of DeadLetterPublishingRecoverer.setAppendOriginalHeaders(boolean).
    org.springframework.kafka.listener.FailedRecordProcessor.getSkipPredicate(List<ConsumerRecord<?, ?>>, Exception)
    in favor of FailedRecordProcessor.getRecoveryStrategy(List, Exception).
    org.springframework.kafka.listener.ListenerUtils.unrecoverableBackOff(BackOff, ThreadLocal<BackOffExecution>, ThreadLocal<Long>)
    since 2.7 in favor of ListenerUtils.unrecoverableBackOff(BackOff, ThreadLocal, ThreadLocal, MessageListenerContainer).
    org.springframework.kafka.listener.RecordInterceptor.intercept(ConsumerRecord<K, V>)
    in favor of RecordInterceptor.intercept(ConsumerRecord, Consumer) which will become the required method in a future release.
    org.springframework.kafka.retrytopic.RetryTopicConfigurationBuilder.dltHandlerMethod(Class<?>, String)
    in favor of RetryTopicConfigurationBuilder.dltHandlerMethod(String, String).
    org.springframework.kafka.support.JacksonUtils.enhancedObjectMapper(ClassLoader)
    since 2.7.5 in favor of JacksonUtils.enhancedObjectMapper()
  • Deprecated Constructors
    Constructor
    Description
    org.springframework.kafka.listener.adapter.DelegatingInvocableHandler(List<InvocableHandlerMethod>, Object, BeanExpressionResolver, BeanExpressionContext)
    in favor of DelegatingInvocableHandler(List, InvocableHandlerMethod, Object, BeanExpressionResolver, BeanExpressionContext, BeanFactory, Validator)
    org.springframework.kafka.listener.adapter.DelegatingInvocableHandler(List<InvocableHandlerMethod>, InvocableHandlerMethod, Object, BeanExpressionResolver, BeanExpressionContext)
    in favor of DelegatingInvocableHandler(List, InvocableHandlerMethod, Object, BeanExpressionResolver, BeanExpressionContext, BeanFactory, Validator)
    org.springframework.kafka.retrytopic.RetryTopicConfigurer(DestinationTopicProcessor, ListenerContainerFactoryResolver, ListenerContainerFactoryConfigurer, BeanFactory)
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.springframework.kafka.listener.ContainerProperties.EOSMode.ALPHA
    in favor of ContainerProperties.EOSMode.V1.
    org.springframework.kafka.listener.ContainerProperties.EOSMode.BETA
    in favor of ContainerProperties.EOSMode.V2.