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 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(RabbitStreamTemplate template) Create an initialRabbitStreamMessageHandlerSpec(adapter).
-
Method Details
-
inboundAdapter
public static RabbitStreamInboundChannelAdapterSpec inboundAdapter(StreamListenerContainer listenerContainer) Create an initialRabbitStreamInboundChannelAdapterSpecwith the providedStreamListenerContainer. Note: only endpoint options are available from spec. 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. Note: only endpoint options are available from spec. 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, com.rabbitmq.stream.Codec codec) Create an initialRabbitStreamInboundChannelAdapterSpecwith the providedEnvironment. Note: only endpoint options are available from spec. ThelistenerContaineroptions should be specified on the providedStreamListenerContainerusingRabbitStreamInboundChannelAdapterSpec.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.
-