Class KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V,R>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<KafkaTemplateSpec<K,V>,org.springframework.kafka.core.KafkaTemplate<K,V>>
org.springframework.integration.kafka.dsl.KafkaTemplateSpec<K,V>
org.springframework.integration.kafka.dsl.KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V,R>
- Type Parameters:
K- the key type.V- the request value type.R- the reply value type.
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<org.springframework.kafka.core.KafkaTemplate<K,V>>,org.springframework.beans.factory.InitializingBean,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
- Enclosing class:
- KafkaOutboundGatewaySpec<K,V,R,S extends KafkaOutboundGatewaySpec<K,V,R,S>>
public static class KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V,R> extends KafkaTemplateSpec<K,V>
An
IntegrationComponentSpec
implementation for the KafkaTemplate.-
Field Summary
-
Method Summary
Modifier and Type Method Description KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V,R>defaultReplyTimeout(java.time.Duration replyTimeout)Default reply timeout.KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V,R>taskScheduler(org.springframework.scheduling.TaskScheduler scheduler)Methods inherited from class org.springframework.integration.kafka.dsl.KafkaTemplateSpec
defaultTopic, getTemplate, id, messageConverter, producerListenerMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
-
Method Details
-
taskScheduler
public KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V,R> taskScheduler(org.springframework.scheduling.TaskScheduler scheduler) -
defaultReplyTimeout
public KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V,R> defaultReplyTimeout(java.time.Duration replyTimeout)Default reply timeout.- Parameters:
replyTimeout- the timeout.- Returns:
- the spec.
-