Class KafkaInboundGatewaySpec<K, V, R, S extends KafkaInboundGatewaySpec<K,V,R,S>>   
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S, KafkaInboundGateway<K,V,R>>
  
org.springframework.integration.dsl.MessagingGatewaySpec<S, KafkaInboundGateway<K,V,R>>
  
org.springframework.integration.kafka.dsl.KafkaInboundGatewaySpec<K,V,R,S>   
- Type Parameters:
- K- the key type.
- V- the request value type.
- R- the reply value type.
- S- the target- KafkaInboundGatewaySpecimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<KafkaInboundGateway<K,,- V, - R>> - InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
- Direct Known Subclasses:
- KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec
public class KafkaInboundGatewaySpec<K, V, R, S extends KafkaInboundGatewaySpec<K,V,R,S>>   
extends MessagingGatewaySpec<S, KafkaInboundGateway<K,V,R>>
implements ComponentsRegistration  
A 
MessagingGatewaySpec implementation for the KafkaInboundGateway.- Since:
- 5.4
- Author:
- Gary Russell, Artem Bilan
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAConcurrentMessageListenerContainerconfigurationKafkaInboundGatewaySpecextension.
- 
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 use with a record-based consumer.onPartitionsAssignedSeekCallback(BiConsumer<Map<org.apache.kafka.common.TopicPartition, Long>, org.springframework.kafka.listener.ConsumerSeekAware.ConsumerSeekCallback> onPartitionsAssignedCallback) Specify aBiConsumerfor seeks management duringcall from theinvalid referenceConsumerSeekAware.ConsumerSeekCallback#onPartitionsAssigned(Map, ConsumerSeekAware.ConsumerSeekCallback)KafkaMessageListenerContainer.recoveryCallback(org.springframework.retry.RecoveryCallback<?> recoveryCallback) ARecoveryCallbackinstance for retry operation; if null, the exception will be thrown to the container after retries are exhausted.retryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate) Specify aRetryTemplateinstance to use for retrying deliveries.Methods inherited from class org.springframework.integration.dsl.MessagingGatewaySpecautoStartup, errorChannel, errorChannel, errorOnTimeout, id, observationConvention, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Method Details- 
messageConverterpublic S messageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) Set the message converter to use with a record-based consumer.- Parameters:
- messageConverter- the converter.
- Returns:
- the spec
 
- 
retryTemplateSpecify aRetryTemplateinstance to use for retrying deliveries.- Parameters:
- retryTemplate- the- RetryTemplateto use.
- Returns:
- the spec
 
- 
recoveryCallbackARecoveryCallbackinstance for retry operation; if null, the exception will be thrown to the container after retries are exhausted. Does not make sense ifretryTemplate(RetryTemplate)isn't specified.- Parameters:
- recoveryCallback- the recovery callback.
- Returns:
- the spec
 
- 
onPartitionsAssignedSeekCallbackpublic S onPartitionsAssignedSeekCallback(BiConsumer<Map<org.apache.kafka.common.TopicPartition, Long>, org.springframework.kafka.listener.ConsumerSeekAware.ConsumerSeekCallback> onPartitionsAssignedCallback) Specify aBiConsumerfor seeks management duringcall from theinvalid referenceConsumerSeekAware.ConsumerSeekCallback#onPartitionsAssigned(Map, ConsumerSeekAware.ConsumerSeekCallback)KafkaMessageListenerContainer.- Parameters:
- onPartitionsAssignedCallback- the- BiConsumerto use
- Returns:
- the spec
 
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
 
 
-