Class KafkaInboundChannelAdapterSpec<K,V> 
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<KafkaInboundChannelAdapterSpec<K,V>, KafkaMessageSource<K,V>>
  
org.springframework.integration.dsl.MessageSourceSpec<KafkaInboundChannelAdapterSpec<K,V>, KafkaMessageSource<K,V>>
  
org.springframework.integration.kafka.dsl.KafkaInboundChannelAdapterSpec<K,V> 
- Type Parameters:
- K- the key type.
- V- the value type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<KafkaMessageSource<K,,- V>> - InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
public class KafkaInboundChannelAdapterSpec<K,V> 
extends MessageSourceSpec<KafkaInboundChannelAdapterSpec<K,V>, KafkaMessageSource<K,V>>  
Spec for a polled Apache Kafka inbound channel adapter.
- Since:
- 5.4
- Author:
- Gary Russell, Anshul Mehra, Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Method SummaryModifier and TypeMethodDescriptionmessageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) Set the message converter to replace the default.payloadType(Class<?> type) Set the payload type.rawMessageHeader(boolean rawMessageHeader) Set to true to include the rawConsumerRecordas headers with keysKafkaHeaders.RAW_DATAandIntegrationMessageHeaderAccessor.SOURCE_DATA.Methods inherited from class org.springframework.integration.dsl.MessageSourceSpecmessageHeadersMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingletonMethods inherited from interface org.springframework.context.SmartLifecycleisPauseable
- 
Method Details- 
messageConverterpublic KafkaInboundChannelAdapterSpec<K,V> messageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) Set the message converter to replace the default.MessagingMessageConverter.- Parameters:
- messageConverter- the converter.
- Returns:
- the spec.
 
- 
payloadTypeSet the payload type. Only applies if a type-aware message converter is provided.- Parameters:
- type- the type to convert to.
- Returns:
- the spec.
 
- 
rawMessageHeaderSet to true to include the rawConsumerRecordas headers with keysKafkaHeaders.RAW_DATAandIntegrationMessageHeaderAccessor.SOURCE_DATA. enabling callers to have access to the record to process errors.- Parameters:
- rawMessageHeader- true to include the header.
- Returns:
- the spec.
 
 
-