Uses of Class
org.springframework.integration.kafka.dsl.KafkaInboundChannelAdapterSpec
Package
Description
Provides Spring Integration Java DSL Components support for Apache Kafka.
-
Uses of KafkaInboundChannelAdapterSpec in org.springframework.integration.kafka.dsl
Modifier and TypeMethodDescriptionstatic <K,
V> KafkaInboundChannelAdapterSpec<K, V> Kafka.inboundChannelAdapter
(org.springframework.kafka.core.ConsumerFactory<K, V> consumerFactory, org.springframework.kafka.listener.ConsumerProperties consumerProperties) Create an initialKafkaInboundChannelAdapterSpec
with the consumer factory and topics.static <K,
V> KafkaInboundChannelAdapterSpec<K, V> Kafka.inboundChannelAdapter
(org.springframework.kafka.core.ConsumerFactory<K, V> consumerFactory, org.springframework.kafka.listener.ConsumerProperties consumerProperties, boolean allowMultiFetch) Create an initialKafkaInboundChannelAdapterSpec
with the consumer factory and topics.static <K,
V> KafkaInboundChannelAdapterSpec<K, V> Kafka.inboundChannelAdapter
(org.springframework.kafka.core.ConsumerFactory<K, V> consumerFactory, org.springframework.kafka.listener.ConsumerProperties consumerProperties, KafkaMessageSource.KafkaAckCallbackFactory<K, V> ackCallbackFactory) Create an initialKafkaInboundChannelAdapterSpec
with the consumer factory and topics with a custom ack callback factory.static <K,
V> KafkaInboundChannelAdapterSpec<K, V> Kafka.inboundChannelAdapter
(org.springframework.kafka.core.ConsumerFactory<K, V> consumerFactory, org.springframework.kafka.listener.ConsumerProperties consumerProperties, KafkaMessageSource.KafkaAckCallbackFactory<K, V> ackCallbackFactory, boolean allowMultiFetch) Create an initialKafkaInboundChannelAdapterSpec
with the consumer factory and topics with a custom ack callback factory.KafkaInboundChannelAdapterSpec.messageConverter
(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) Set the message converter to replace the default.KafkaInboundChannelAdapterSpec.payloadType
(Class<?> type) Set the payload type.KafkaInboundChannelAdapterSpec.rawMessageHeader
(boolean rawMessageHeader) Set to true to include the rawConsumerRecord
as headers with keysKafkaHeaders.RAW_DATA
andIntegrationMessageHeaderAccessor.SOURCE_DATA
.