Class KafkaOutboundGatewaySpec<K,V,R,S extends KafkaOutboundGatewaySpec<K,V,R,S>>      
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
 
org.springframework.integration.dsl.MessageHandlerSpec<S,KafkaProducerMessageHandler<K,V>>
  
org.springframework.integration.kafka.dsl.KafkaProducerMessageHandlerSpec<K,V,S>
  
org.springframework.integration.kafka.dsl.KafkaOutboundGatewaySpec<K,V,R,S>   
- Type Parameters:
- K- the key type.
- V- the outbound value type.
- R- the reply value type.
- S- the- KafkaProducerMessageHandlerSpecextension type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<KafkaProducerMessageHandler<K,,- V>> - InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec
public class KafkaOutboundGatewaySpec<K,V,R,S extends KafkaOutboundGatewaySpec<K,V,R,S>>      
extends KafkaProducerMessageHandlerSpec<K,V,S>  
A 
MessageHandlerSpec
 implementation for the KafkaProducerMessageHandler
 as a gateway.- Since:
- 5.4
- Author:
- Gary Russell
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAKafkaTemplate-basedKafkaProducerMessageHandlerSpecextension.static classAnIntegrationComponentSpecimplementation for theKafkaTemplate.Nested classes/interfaces inherited from class org.springframework.integration.kafka.dsl.KafkaProducerMessageHandlerSpecKafkaProducerMessageHandlerSpec.KafkaProducerMessageHandlerTemplateSpec<K,V> 
- 
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 TypeMethodDescriptionassigmentDuration(Duration duration) Set the time to wait for partition assignment, when used as a gateway, to determine the default reply-to topic/partition.replyMessageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) Set a message converter for replies (when a gateway).Methods inherited from class org.springframework.integration.kafka.dsl.KafkaProducerMessageHandlerSpecflush, flushExpression, flushExpression, futuresChannel, futuresChannel, headerMapper, messageKey, messageKey, messageKeyExpression, messageKeyExpression, partitionId, partitionId, partitionIdExpression, partitionIdExpression, producerRecordCreator, sendFailureChannel, sendFailureChannel, sendSuccessChannel, sendSuccessChannel, sendTimeout, sync, timestamp, timestampExpression, timestampExpression, topic, topic, topicExpression, topicExpression, useTemplateConverterMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, get, 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.FactoryBeanisSingleton
- 
Method Details- 
replyMessageConverterpublic S replyMessageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) Set a message converter for replies (when a gateway).- Parameters:
- messageConverter- the converter.
- Returns:
- the spec.
 
- 
assigmentDurationSet the time to wait for partition assignment, when used as a gateway, to determine the default reply-to topic/partition.- Parameters:
- duration- the duration.
- Returns:
- the spec.
- Since:
- 6.0
 
 
-