Class RabbitStreamMessageListenerContainerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
org.springframework.integration.amqp.dsl.MessageListenerContainerSpec<RabbitStreamMessageListenerContainerSpec,org.springframework.rabbit.stream.listener.StreamListenerContainer>
org.springframework.integration.amqp.dsl.RabbitStreamMessageListenerContainerSpec
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<org.springframework.rabbit.stream.listener.StreamListenerContainer>,org.springframework.beans.factory.InitializingBean,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class RabbitStreamMessageListenerContainerSpec
extends MessageListenerContainerSpec<RabbitStreamMessageListenerContainerSpec,org.springframework.rabbit.stream.listener.StreamListenerContainer>
Spec for
StreamListenerContainer.- Since:
- 6.0
-
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 TypeMethodDescriptionadviceChain(org.aopalliance.aop.Advice... adviceChain) Perform additional configuration of the container.consumerCustomizer(org.springframework.rabbit.stream.listener.ConsumerCustomizer customizer) Set a consumer customizer.streamConverter(org.springframework.rabbit.stream.support.converter.StreamMessageConverter converter) Set a stream message converter.superStream(String superStream, String name) Enable Single Active Consumer on a Super Stream.superStream(String superStream, String name, int consumers) Enable Single Active Consumer on a Super Stream.Methods inherited from class org.springframework.integration.amqp.dsl.MessageListenerContainerSpec
queueNameMethods 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Method Details
-
superStream
Enable Single Active Consumer on a Super Stream. Mutually exclusive withMessageListenerContainerSpec.queueName(String...).- Parameters:
superStream- the stream.name- the consumer name.- Returns:
- this spec.
-
superStream
public RabbitStreamMessageListenerContainerSpec superStream(String superStream, String name, int consumers) Enable Single Active Consumer on a Super Stream. Mutually exclusive withMessageListenerContainerSpec.queueName(String...).- Parameters:
superStream- the stream.name- the consumer name.consumers- the number of consumers.- Returns:
- this spec.
- Since:
- 6.1
-
streamConverter
public RabbitStreamMessageListenerContainerSpec streamConverter(org.springframework.rabbit.stream.support.converter.StreamMessageConverter converter) Set a stream message converter.- Parameters:
converter- the converter.- Returns:
- this spec.
-
consumerCustomizer
public RabbitStreamMessageListenerContainerSpec consumerCustomizer(org.springframework.rabbit.stream.listener.ConsumerCustomizer customizer) Set a consumer customizer.- Parameters:
customizer- the customizer.- Returns:
- this spec.
-
adviceChain
public RabbitStreamMessageListenerContainerSpec adviceChain(org.aopalliance.aop.Advice... adviceChain) - Parameters:
adviceChain- the adviceChain.- Returns:
- the spec.
- See Also:
-
StreamListenerContainer.setAdviceChain(Advice[])
-
configure
public RabbitStreamMessageListenerContainerSpec configure(Consumer<org.springframework.rabbit.stream.listener.StreamListenerContainer> consumer) Perform additional configuration of the container.- Parameters:
consumer- a consumer for the container.- Returns:
- this spec.
-