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:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<org.springframework.kafka.core.KafkaTemplate<K,,V>> InitializingBean,Lifecycle,Phased,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
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, targetFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Method Summary
Modifier and TypeMethodDescriptiondefaultReplyTimeout(Duration replyTimeout) Default reply timeout.taskScheduler(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, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Method Details
-
taskScheduler
public KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V, taskSchedulerR> (TaskScheduler scheduler) -
defaultReplyTimeout
public KafkaOutboundGatewaySpec.ReplyingKafkaTemplateSpec<K,V, defaultReplyTimeoutR> (Duration replyTimeout) Default reply timeout.- Parameters:
replyTimeout- the timeout.- Returns:
- the spec.
-