Class RabbitStream
java.lang.Object
org.springframework.integration.amqp.dsl.RabbitStream
Factory class for RabbitMQ components.
- Since:
- 6.0
- Author:
- Gary Russell
-
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
(RabbitStreamTemplate template) Create an initialRabbitStreamMessageHandlerSpec
(adapter).
-
Method Details
-
inboundAdapter
public static RabbitStreamInboundChannelAdapterSpec inboundAdapter(StreamListenerContainer listenerContainer) Create an initialRabbitStreamInboundChannelAdapterSpec
with the providedStreamListenerContainer
. Note: only endpoint options are available from spec. 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
. Note: only endpoint options are available from spec. 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, com.rabbitmq.stream.Codec codec) Create an initialRabbitStreamInboundChannelAdapterSpec
with the providedEnvironment
. Note: only endpoint options are available from spec. 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
Create an initialRabbitStreamMessageHandlerSpec
(adapter).- Parameters:
template
- the amqpTemplate.- Returns:
- the RabbitStreamMessageHandlerSpec.
-