Class RabbitStream
java.lang.Object
org.springframework.integration.amqp.dsl.RabbitStream
Factory class for RabbitMQ components.
- Since:
- 6.0
- Author:
- Gary Russell, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptioninboundAdapter
(com.rabbitmq.stream.Environment environment) Create an initialRabbitStreamInboundChannelAdapterSpec
with the providedEnvironment
.inboundAdapter
(com.rabbitmq.stream.Environment environment, com.rabbitmq.stream.Codec codec) Create an initialRabbitStreamInboundChannelAdapterSpec
with the providedEnvironment
.inboundAdapter
(StreamListenerContainer listenerContainer) Create an initialRabbitStreamInboundChannelAdapterSpec
with the providedStreamListenerContainer
.outboundStreamAdapter
(com.rabbitmq.stream.Environment environment, String streamName) Create an initialRabbitStreamMessageHandlerSpec
(adapter).outboundStreamAdapter
(RabbitStreamTemplate template) Create an initialRabbitStreamMessageHandlerSpec
(adapter).
-
Method Details
-
inboundAdapter
public static RabbitStreamInboundChannelAdapterSpec inboundAdapter(StreamListenerContainer listenerContainer) Create an initialRabbitStreamInboundChannelAdapterSpec
with the providedStreamListenerContainer
. ThestreamName
orsuperStream
must be provided after creation of this spec; or thelistenerContainer
options should be specified on the providedStreamListenerContainer
usingRabbitStreamInboundChannelAdapterSpec.configureContainer(java.util.function.Consumer)
.- Parameters:
listenerContainer
- the listenerContainer.- Returns:
- the RabbitInboundChannelAdapterSLCSpec.
-
inboundAdapter
public static RabbitStreamInboundChannelAdapterSpec inboundAdapter(com.rabbitmq.stream.Environment environment) Create an initialRabbitStreamInboundChannelAdapterSpec
with the providedEnvironment
. ThestreamName
orsuperStream
must be provided after creation of this spec; or thelistenerContainer
options should be specified on the providedStreamListenerContainer
usingRabbitStreamInboundChannelAdapterSpec.configureContainer(java.util.function.Consumer)
.- Parameters:
environment
- the environment.- Returns:
- the RabbitInboundChannelAdapterSLCSpec.
-
inboundAdapter
public static RabbitStreamInboundChannelAdapterSpec inboundAdapter(com.rabbitmq.stream.Environment environment, @Nullable com.rabbitmq.stream.Codec codec) Create an initialRabbitStreamInboundChannelAdapterSpec
with the providedEnvironment
. ThestreamName
orsuperStream
must be provided after creation of this spec; or thelistenerContainer
options should be specified on the providedStreamListenerContainer
usingRabbitStreamInboundChannelAdapterSpec.configureContainer(java.util.function.Consumer)
.- Parameters:
environment
- the environment.codec
- the codec.- Returns:
- the RabbitInboundChannelAdapterSLCSpec.
-
outboundStreamAdapter
public static RabbitStreamMessageHandlerSpec outboundStreamAdapter(com.rabbitmq.stream.Environment environment, String streamName) Create an initialRabbitStreamMessageHandlerSpec
(adapter).- Parameters:
environment
- the environment.streamName
- the name of stream to produce.- Returns:
- the RabbitStreamMessageHandlerSpec.
- Since:
- 6.1
-
outboundStreamAdapter
Create an initialRabbitStreamMessageHandlerSpec
(adapter).- Parameters:
template
- the amqpTemplate.- Returns:
- the RabbitStreamMessageHandlerSpec.
-