Class KafkaShareMessageDrivenChannelAdapterSpec<K,V,S extends KafkaShareMessageDrivenChannelAdapterSpec<K,V,S>>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,P>
org.springframework.integration.dsl.MessageProducerSpec<S,KafkaShareMessageDrivenChannelAdapter<K,V>>
org.springframework.integration.kafka.dsl.KafkaShareMessageDrivenChannelAdapterSpec<K,V,S>
- Type Parameters:
K- the key type.V- the value type.S- the targetKafkaShareMessageDrivenChannelAdapterSpecimplementation 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
A
MessageProducerSpec implementation for the
KafkaShareMessageDrivenChannelAdapter.- Since:
- 7.2
- Author:
- Artem Bilan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classKafkaShareMessageDrivenChannelAdapterSpec.KafkaShareMessageDrivenChannelAdapterListenerContainerSpec<K,V> AShareKafkaMessageListenerContainerconfigurationKafkaShareMessageDrivenChannelAdapterSpecextension. -
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Method Summary
Modifier and TypeMethodDescriptionbindSourceRecord(boolean bindSourceRecord) Set to true to bind the source consumer record in the header namedIntegrationMessageHeaderAccessor.SOURCE_DATA.payloadType(Class<?> payloadType) When using a type-aware message converter (such asStringJsonMessageConverter), set the payload type the converter should create.recordFilterStrategy(org.springframework.kafka.listener.adapter.RecordFilterStrategy<K, V> recordFilterStrategy) Specify aRecordFilterStrategyto discard records before they are converted and sent.recordMessageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) Set the message converter to use.Methods inherited from class org.springframework.integration.dsl.MessageProducerSpec
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, observationConvention, outputChannel, outputChannel, phase, role, sendTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingletonMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable
-
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 aRecordFilterStrategyto discard records before they are converted and sent.- Parameters:
recordFilterStrategy- theRecordFilterStrategyto use.- Returns:
- the spec.
-
payloadType
When using a type-aware message converter (such asStringJsonMessageConverter), set the payload type the converter should create. Defaults toObject.- Parameters:
payloadType- the type.- Returns:
- the spec.
-
bindSourceRecord
Set to true to bind the source consumer record in the header namedIntegrationMessageHeaderAccessor.SOURCE_DATA.- Parameters:
bindSourceRecord- true to bind.- Returns:
- the spec.
-
getComponentsToRegister
- Specified by:
getComponentsToRegisterin interfaceComponentsRegistration
-