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 initialRabbitStreamInboundChannelAdapterSpecwith the providedEnvironment.inboundAdapter(com.rabbitmq.stream.Environment environment, com.rabbitmq.stream.Codec codec) Create an initialRabbitStreamInboundChannelAdapterSpecwith the providedEnvironment.inboundAdapter(StreamListenerContainer listenerContainer) Create an initialRabbitStreamInboundChannelAdapterSpecwith 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 initialRabbitStreamInboundChannelAdapterSpecwith the providedStreamListenerContainer. ThestreamNameorsuperStreammust be provided after creation of this spec; or thelistenerContaineroptions should be specified on the providedStreamListenerContainerusingRabbitStreamInboundChannelAdapterSpec.configureContainer(java.util.function.Consumer).- Parameters:
listenerContainer- the listenerContainer.- Returns:
- the RabbitInboundChannelAdapterSLCSpec.
-
inboundAdapter
public static RabbitStreamInboundChannelAdapterSpec inboundAdapter(com.rabbitmq.stream.Environment environment) Create an initialRabbitStreamInboundChannelAdapterSpecwith the providedEnvironment. ThestreamNameorsuperStreammust be provided after creation of this spec; or thelistenerContaineroptions should be specified on the providedStreamListenerContainerusingRabbitStreamInboundChannelAdapterSpec.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 initialRabbitStreamInboundChannelAdapterSpecwith the providedEnvironment. ThestreamNameorsuperStreammust be provided after creation of this spec; or thelistenerContaineroptions should be specified on the providedStreamListenerContainerusingRabbitStreamInboundChannelAdapterSpec.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.
-