K
- the key type.V
- the value type.public class KafkaInboundChannelAdapterSpec<K,V> extends MessageSourceSpec<KafkaInboundChannelAdapterSpec<K,V>,KafkaMessageSource<K,V>>
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier and Type | Method and Description |
---|---|
KafkaInboundChannelAdapterSpec<K,V> |
messageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter)
Set the message converter to replace the default.
|
KafkaInboundChannelAdapterSpec<K,V> |
payloadType(Class<?> type)
Set the payload type.
|
KafkaInboundChannelAdapterSpec<K,V> |
rawMessageHeader(boolean rawMessageHeader)
Set to true to include the raw
ConsumerRecord as headers with keys
KafkaHeaders.RAW_DATA and
IntegrationMessageHeaderAccessor.SOURCE_DATA . |
messageHeaders
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public KafkaInboundChannelAdapterSpec<K,V> messageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter)
MessagingMessageConverter
.messageConverter
- the converter.public KafkaInboundChannelAdapterSpec<K,V> payloadType(Class<?> type)
type
- the type to convert to.public KafkaInboundChannelAdapterSpec<K,V> rawMessageHeader(boolean rawMessageHeader)
ConsumerRecord
as headers with keys
KafkaHeaders.RAW_DATA
and
IntegrationMessageHeaderAccessor.SOURCE_DATA
. enabling callers to have
access to the record to process errors.rawMessageHeader
- true to include the header.