Class KafkaShareMessageDrivenChannelAdapterSpec<K,V,S extends KafkaShareMessageDrivenChannelAdapterSpec<K,V,S>>

Type Parameters:
K - the key type.
V - the value type.
S - the target KafkaShareMessageDrivenChannelAdapterSpec implementation type.
All Implemented Interfaces:
DisposableBean, FactoryBean<KafkaShareMessageDrivenChannelAdapter<K,V>>, InitializingBean, Lifecycle, Phased, SmartLifecycle, ComponentsRegistration
Direct Known Subclasses:
KafkaShareMessageDrivenChannelAdapterSpec.KafkaShareMessageDrivenChannelAdapterListenerContainerSpec

public class KafkaShareMessageDrivenChannelAdapterSpec<K,V,S extends KafkaShareMessageDrivenChannelAdapterSpec<K,V,S>> extends MessageProducerSpec<S,KafkaShareMessageDrivenChannelAdapter<K,V>> implements ComponentsRegistration
Since:
7.2
Author:
Artem Bilan
  • Method Details

    • recordMessageConverter

      public S recordMessageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter)
      Set the message converter to use.
      Parameters:
      messageConverter - the converter.
      Returns:
      the spec.
    • recordFilterStrategy

      public S recordFilterStrategy(org.springframework.kafka.listener.adapter.RecordFilterStrategy<K,V> recordFilterStrategy)
      Specify a RecordFilterStrategy to discard records before they are converted and sent.
      Parameters:
      recordFilterStrategy - the RecordFilterStrategy to use.
      Returns:
      the spec.
    • payloadType

      public S payloadType(Class<?> payloadType)
      When using a type-aware message converter (such as StringJsonMessageConverter), set the payload type the converter should create. Defaults to Object.
      Parameters:
      payloadType - the type.
      Returns:
      the spec.
    • bindSourceRecord

      public S bindSourceRecord(boolean bindSourceRecord)
      Set to true to bind the source consumer record in the header named IntegrationMessageHeaderAccessor.SOURCE_DATA.
      Parameters:
      bindSourceRecord - true to bind.
      Returns:
      the spec.
    • getComponentsToRegister

      public Map<Object,@Nullable String> getComponentsToRegister()
      Specified by:
      getComponentsToRegister in interface ComponentsRegistration