Class RabbitStreamInboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,P>
 
org.springframework.integration.dsl.MessageProducerSpec<S,AmqpInboundChannelAdapter>
 
org.springframework.integration.amqp.dsl.AmqpBaseInboundChannelAdapterSpec<S>
org.springframework.integration.amqp.dsl.AmqpInboundChannelAdapterSpec<RabbitStreamInboundChannelAdapterSpec,StreamListenerContainer>
 
org.springframework.integration.amqp.dsl.RabbitStreamInboundChannelAdapterSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<AmqpInboundChannelAdapter>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
public class RabbitStreamInboundChannelAdapterSpec
extends AmqpInboundChannelAdapterSpec<RabbitStreamInboundChannelAdapterSpec,StreamListenerContainer> 
Spec for an inbound channel adapter with a 
StreamListenerContainer.- Since:
- 6.0
- Author:
- Gary Russell, Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.amqp.dsl.AmqpInboundChannelAdapterSpeclistenerContainerSpecFields inherited from class org.springframework.integration.amqp.dsl.AmqpBaseInboundChannelAdapterSpecheaderMapperFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedRabbitStreamInboundChannelAdapterSpec(com.rabbitmq.stream.Environment environment, com.rabbitmq.stream.Codec codec) protectedRabbitStreamInboundChannelAdapterSpec(StreamListenerContainer listenerContainer) 
- 
Method SummaryModifier and TypeMethodDescriptionstreamName(String streamName) Configure a name for Rabbit stream to consume from.superStream(String superStream, String consumerName) Configure a name for Rabbit super stream to consume from.superStream(String superStream, String consumerName, int consumers) Configure a name for Rabbit super stream to consume from.Methods inherited from class org.springframework.integration.amqp.dsl.AmqpInboundChannelAdapterSpecgetComponentsToRegisterMethods inherited from class org.springframework.integration.amqp.dsl.AmqpBaseInboundChannelAdapterSpecheaderMapper, mappedRequestHeaders, messageConverter, messageRecoverer, recoveryCallback, retryTemplateMethods inherited from class org.springframework.integration.dsl.MessageProducerSpecautoStartup, errorChannel, errorChannel, errorMessageStrategy, id, observationConvention, outputChannel, outputChannel, phase, role, sendTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
RabbitStreamInboundChannelAdapterSpec
- 
RabbitStreamInboundChannelAdapterSpecprotected RabbitStreamInboundChannelAdapterSpec(com.rabbitmq.stream.Environment environment, @Nullable com.rabbitmq.stream.Codec codec) 
 
- 
- 
Method Details- 
streamNameConfigure a name for Rabbit stream to consume from.- Parameters:
- streamName- the name of Rabbit stream.
- Returns:
- the spec
- Since:
- 6.1
 
- 
superStreamConfigure a name for Rabbit super stream to consume from.- Parameters:
- superStream- the name of Rabbit super stream.
- consumerName- the logical name to enable offset tracking.
- Returns:
- the spec
- Since:
- 6.1
 
- 
superStreampublic RabbitStreamInboundChannelAdapterSpec superStream(String superStream, String consumerName, int consumers) Configure a name for Rabbit super stream to consume from.- Parameters:
- superStream- the name of Rabbit super stream.
- consumerName- the logical name to enable offset tracking.
- consumers- the number of consumers.
- Returns:
- the spec
- Since:
- 6.1
 
- 
configureContainerpublic RabbitStreamInboundChannelAdapterSpec configureContainer(Consumer<RabbitStreamMessageListenerContainerSpec> configurer) 
 
-