Class RabbitStreamInboundChannelAdapterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<RabbitStreamInboundChannelAdapterSpec, AmqpInboundChannelAdapter>
org.springframework.integration.dsl.MessageProducerSpec<RabbitStreamInboundChannelAdapterSpec, AmqpInboundChannelAdapter>
org.springframework.integration.amqp.dsl.AmqpBaseInboundChannelAdapterSpec<RabbitStreamInboundChannelAdapterSpec>
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 Summary
Fields inherited from class AmqpInboundChannelAdapterSpec
listenerContainerSpecFields inherited from class AmqpBaseInboundChannelAdapterSpec
headerMapperFields inherited from class IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRabbitStreamInboundChannelAdapterSpec(com.rabbitmq.stream.Environment environment, @Nullable com.rabbitmq.stream.Codec codec) protectedRabbitStreamInboundChannelAdapterSpec(StreamListenerContainer listenerContainer) -
Method Summary
Modifier 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 AmqpInboundChannelAdapterSpec
getComponentsToRegisterMethods inherited from class AmqpBaseInboundChannelAdapterSpec
headerMapper, mappedRequestHeaders, messageConverter, messageRecoverer, recoveryCallback, retryTemplateMethods inherited from class MessageProducerSpec
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, observationConvention, outputChannel, outputChannel, phase, role, sendTimeout, shouldTrackMethods inherited from class IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
Constructor Details
-
RabbitStreamInboundChannelAdapterSpec
-
RabbitStreamInboundChannelAdapterSpec
protected RabbitStreamInboundChannelAdapterSpec(com.rabbitmq.stream.Environment environment, @Nullable com.rabbitmq.stream.Codec codec)
-
-
Method Details
-
streamName
Configure a name for Rabbit stream to consume from.- Parameters:
streamName- the name of Rabbit stream.- Returns:
- the spec
- Since:
- 6.1
-
superStream
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.- Returns:
- the spec
- Since:
- 6.1
-
superStream
public 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
-
configureContainer
public RabbitStreamInboundChannelAdapterSpec configureContainer(Consumer<RabbitStreamMessageListenerContainerSpec> configurer)
-