Class KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,G>
org.springframework.integration.dsl.MessagingGatewaySpec<S,KafkaInboundGateway<K,V,R>>
org.springframework.integration.kafka.dsl.KafkaInboundGatewaySpec<K,V,R,KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>>
org.springframework.integration.kafka.dsl.KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<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<KafkaInboundGateway<K,V,R>>,org.springframework.beans.factory.InitializingBean,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle,org.springframework.integration.dsl.ComponentsRegistration
- Enclosing class:
- KafkaInboundGatewaySpec<K,V,R,S extends KafkaInboundGatewaySpec<K,V,R,S>>
public static class KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R> extends KafkaInboundGatewaySpec<K,V,R,KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>>
A
ConcurrentMessageListenerContainer
configuration KafkaInboundGatewaySpec extension.-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.integration.kafka.dsl.KafkaInboundGatewaySpec
KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R> -
Field Summary
-
Method Summary
Modifier and Type Method Description KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>configureListenerContainer(java.util.function.Consumer<KafkaMessageListenerContainerSpec<K,V>> configurer)Configure a listener container by invoking theConsumercallback, with aKafkaMessageListenerContainerSpecargument.KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>configureTemplate(java.util.function.Consumer<KafkaTemplateSpec<K,R>> configurer)Configure a template by invoking theConsumercallback, with aKafkaTemplateSpecargument.java.util.Map<java.lang.Object,java.lang.String>getComponentsToRegister()Methods inherited from class org.springframework.integration.kafka.dsl.KafkaInboundGatewaySpec
messageConverter, onPartitionsAssignedSeekCallback, recoveryCallback, retryTemplateMethods inherited from class org.springframework.integration.dsl.MessagingGatewaySpec
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
-
Method Details
-
configureListenerContainer
public KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R> configureListenerContainer(java.util.function.Consumer<KafkaMessageListenerContainerSpec<K,V>> configurer)Configure a listener container by invoking theConsumercallback, with aKafkaMessageListenerContainerSpecargument.- Parameters:
configurer- the configurer Java 8 Lambda.- Returns:
- the spec.
-
configureTemplate
public KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R> configureTemplate(java.util.function.Consumer<KafkaTemplateSpec<K,R>> configurer)Configure a template by invoking theConsumercallback, with aKafkaTemplateSpecargument.- Parameters:
configurer- the configurer Java 8 Lambda.- Returns:
- the spec.
-
getComponentsToRegister
public java.util.Map<java.lang.Object,java.lang.String> getComponentsToRegister()- Specified by:
getComponentsToRegisterin interfaceorg.springframework.integration.dsl.ComponentsRegistration- Overrides:
getComponentsToRegisterin classKafkaInboundGatewaySpec<K,V,R,KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>>
-