Class AmqpClient
java.lang.Object
org.springframework.integration.amqp.dsl.AmqpClient
Factory class for AMQP 1.0 components.
- Since:
- 7.0
- Author:
- Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptioninboundChannelAdapter(org.springframework.amqp.rabbitmq.client.AmqpConnectionFactory connectionFactory, String... queueNames) Create an initial AmqpClientInboundChannelAdapterSpec.static AmqpClientInboundGatewaySpecinboundGateway(org.springframework.amqp.rabbitmq.client.AmqpConnectionFactory connectionFactory, String... queueNames) Create an initialAmqpClientInboundGatewaySpec.static AmqpClientMessageHandlerSpecoutboundAdapter(AsyncAmqpTemplate amqpTemplate) Create an initial AmqpClientMessageHandlerSpec in an outbound channel adapter mode.static AmqpClientMessageHandlerSpecoutboundGateway(AsyncAmqpTemplate amqpTemplate) Create an initial AmqpClientMessageHandlerSpec in a gateway mode.
-
Method Details
-
inboundGateway
public static AmqpClientInboundGatewaySpec inboundGateway(org.springframework.amqp.rabbitmq.client.AmqpConnectionFactory connectionFactory, String... queueNames) Create an initialAmqpClientInboundGatewaySpec.- Parameters:
connectionFactory- the connectionFactory.queueNames- the queueNames.- Returns:
- the AmqpClientInboundGatewaySpec.
-
inboundChannelAdapter
public static AmqpClientInboundChannelAdapterSpec inboundChannelAdapter(org.springframework.amqp.rabbitmq.client.AmqpConnectionFactory connectionFactory, String... queueNames) Create an initial AmqpClientInboundChannelAdapterSpec.- Parameters:
connectionFactory- the connectionFactory.queueNames- the queues to consume from.- Returns:
- the AmqpClientInboundChannelAdapterSpec.
-
outboundAdapter
Create an initial AmqpClientMessageHandlerSpec in an outbound channel adapter mode.- Parameters:
amqpTemplate- the amqpTemplate.- Returns:
- the AmqpClientMessageHandlerSpec.
-
outboundGateway
Create an initial AmqpClientMessageHandlerSpec in a gateway mode.- Parameters:
amqpTemplate- the amqpTemplate.- Returns:
- the AmqpClientMessageHandlerSpec.
-