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:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<KafkaInboundGateway<K,V,R>>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,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
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Method Summary
Modifier and Type Method Description KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>
configureListenerContainer(Consumer<KafkaMessageListenerContainerSpec<K,V>> configurer)
Configure a listener container by invoking theConsumer
callback, with aKafkaMessageListenerContainerSpec
argument.KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>
configureTemplate(Consumer<KafkaTemplateSpec<K,R>> configurer)
Configure a template by invoking theConsumer
callback, with aKafkaTemplateSpec
argument.Map<Object,String>
getComponentsToRegister()
Methods inherited from class org.springframework.integration.kafka.dsl.KafkaInboundGatewaySpec
messageConverter, onPartitionsAssignedSeekCallback, recoveryCallback, retryTemplate
Methods inherited from class org.springframework.integration.dsl.MessagingGatewaySpec
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrack
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Method Details
-
configureListenerContainer
public KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R> configureListenerContainer(Consumer<KafkaMessageListenerContainerSpec<K,V>> configurer)Configure a listener container by invoking theConsumer
callback, with aKafkaMessageListenerContainerSpec
argument.- Parameters:
configurer
- the configurer Java 8 Lambda.- Returns:
- the spec.
-
configureTemplate
public KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R> configureTemplate(Consumer<KafkaTemplateSpec<K,R>> configurer)Configure a template by invoking theConsumer
callback, with aKafkaTemplateSpec
argument.- Parameters:
configurer
- the configurer Java 8 Lambda.- Returns:
- the spec.
-
getComponentsToRegister
- Specified by:
getComponentsToRegister
in interfaceComponentsRegistration
- Overrides:
getComponentsToRegister
in classKafkaInboundGatewaySpec<K,V,R,KafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>>
-