Class KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V,R>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V,R>, KafkaProducerMessageHandler<K,V>>
org.springframework.integration.dsl.MessageHandlerSpec<KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V,R>, KafkaProducerMessageHandler<K,V>>
org.springframework.integration.kafka.dsl.KafkaProducerMessageHandlerSpec<K, V, KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V,R>>
org.springframework.integration.kafka.dsl.KafkaOutboundGatewaySpec<K, V, R, KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V,R>>
org.springframework.integration.kafka.dsl.KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V,R>
- Type Parameters:
K- the key type.V- the outbound value type.R- the reply value type.
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<KafkaProducerMessageHandler<K,V>>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.integration.dsl.ComponentsRegistration
- Enclosing class:
KafkaOutboundGatewaySpec<K, V, R, S extends KafkaOutboundGatewaySpec<K,V, R, S>>
public static class KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V,R>
extends KafkaOutboundGatewaySpec<K, V, R, KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V,R>>
implements org.springframework.integration.dsl.ComponentsRegistration
A
KafkaTemplate-based KafkaProducerMessageHandlerSpec extension.- Since:
- 5.4
-
Nested Class Summary
Nested classes/interfaces inherited from class KafkaOutboundGatewaySpec
KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V, R>, KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K, V, R> Nested classes/interfaces inherited from class KafkaProducerMessageHandlerSpec
KafkaProducerMessageHandlerSpec.KafkaProducerMessageHandlerTemplateSpec<K,V> -
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 TypeMethodDescriptionconfigureKafkaTemplate(Consumer<KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K, V, R>> configurer) Configure a Kafka Template by invoking theConsumercallback, with aKafkaTemplateSpecargument.Methods inherited from class KafkaOutboundGatewaySpec
assigmentDuration, replyMessageConverterMethods inherited from class KafkaProducerMessageHandlerSpec
flush, 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, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class 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
-
configureKafkaTemplate
public KafkaOutboundGatewaySpec.KafkaGatewayMessageHandlerTemplateSpec<K,V, configureKafkaTemplateR> (Consumer<KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K, V, R>> configurer) Configure a Kafka Template by invoking theConsumercallback, with aKafkaTemplateSpecargument.- Parameters:
configurer- the configurer Java 8 Lambda.- Returns:
- the spec.
-
getComponentsToRegister
-