public final class Amqp extends Object
Modifier and Type | Method and Description |
---|---|
static AmqpAsyncOutboundGatewaySpec |
asyncOutboundGateway(AsyncRabbitTemplate asyncRabbitTemplate)
Create an initial AmqpAsyncOutboundGatewaySpec.
|
static <S extends AmqpMessageChannelSpec<S>> |
channel(ConnectionFactory connectionFactory)
Create an initial AmqpMessageChannelSpec.
|
static <S extends AmqpMessageChannelSpec<S>> |
channel(String id,
ConnectionFactory connectionFactory)
Create an initial AmqpMessageChannelSpec.
|
static AmqpInboundChannelAdapterSpec |
inboundAdapter(ConnectionFactory connectionFactory,
Queue... queues)
Create an initial AmqpInboundChannelAdapterSpec.
|
static AmqpInboundChannelAdapterSpec |
inboundAdapter(ConnectionFactory connectionFactory,
String... queueNames)
Create an initial AmqpInboundChannelAdapterSpec.
|
static AmqpBaseInboundChannelAdapterSpec<?> |
inboundAdapter(SimpleMessageListenerContainer listenerContainer)
Create an initial AmqpInboundChannelAdapterSpec.
|
static AmqpInboundGatewaySpec |
inboundGateway(ConnectionFactory connectionFactory,
AmqpTemplate amqpTemplate,
Queue... queues)
Create an initial
AmqpInboundGatewaySpec . |
static AmqpInboundGatewaySpec |
inboundGateway(ConnectionFactory connectionFactory,
AmqpTemplate amqpTemplate,
String... queueNames)
Create an initial
AmqpInboundGatewaySpec . |
static AmqpInboundGatewaySpec |
inboundGateway(ConnectionFactory connectionFactory,
Queue... queues)
Create an initial
AmqpInboundGatewaySpec . |
static AmqpInboundGatewaySpec |
inboundGateway(ConnectionFactory connectionFactory,
String... queueNames)
Create an initial
AmqpInboundGatewaySpec . |
static AmqpBaseInboundGatewaySpec<?> |
inboundGateway(SimpleMessageListenerContainer listenerContainer)
Create an initial
AmqpBaseInboundGatewaySpec
with provided SimpleMessageListenerContainer . |
static AmqpBaseInboundGatewaySpec<?> |
inboundGateway(SimpleMessageListenerContainer listenerContainer,
AmqpTemplate amqpTemplate)
Create an initial
AmqpBaseInboundGatewaySpec
with provided SimpleMessageListenerContainer . |
static AmqpOutboundEndpointSpec |
outboundAdapter(AmqpTemplate amqpTemplate)
Create an initial AmqpOutboundEndpointSpec (adapter).
|
static AmqpOutboundEndpointSpec |
outboundGateway(AmqpTemplate amqpTemplate)
Create an initial AmqpOutboundEndpointSpec (gateway).
|
static <S extends AmqpPollableMessageChannelSpec<S>> |
pollableChannel(ConnectionFactory connectionFactory)
Create an initial AmqpPollableMessageChannelSpec.
|
static <S extends AmqpPollableMessageChannelSpec<S>> |
pollableChannel(String id,
ConnectionFactory connectionFactory)
Create an initial AmqpPollableMessageChannelSpec.
|
static AmqpPublishSubscribeMessageChannelSpec |
publishSubscribeChannel(ConnectionFactory connectionFactory)
Create an initial AmqpPublishSubscribeMessageChannelSpec.
|
static AmqpPublishSubscribeMessageChannelSpec |
publishSubscribeChannel(String id,
ConnectionFactory connectionFactory)
Create an initial AmqpPublishSubscribeMessageChannelSpec.
|
public static AmqpInboundGatewaySpec inboundGateway(ConnectionFactory connectionFactory, String... queueNames)
AmqpInboundGatewaySpec
.connectionFactory
- the connectionFactory.queueNames
- the queueNames.public static AmqpInboundGatewaySpec inboundGateway(ConnectionFactory connectionFactory, AmqpTemplate amqpTemplate, String... queueNames)
AmqpInboundGatewaySpec
.connectionFactory
- the connectionFactory.amqpTemplate
- the AmqpTemplate
to use.queueNames
- the queueNames.public static AmqpInboundGatewaySpec inboundGateway(ConnectionFactory connectionFactory, Queue... queues)
AmqpInboundGatewaySpec
.connectionFactory
- the connectionFactory.queues
- the queues.public static AmqpInboundGatewaySpec inboundGateway(ConnectionFactory connectionFactory, AmqpTemplate amqpTemplate, Queue... queues)
AmqpInboundGatewaySpec
.connectionFactory
- the connectionFactory.amqpTemplate
- the AmqpTemplate
to use.queues
- the queues.public static AmqpBaseInboundGatewaySpec<?> inboundGateway(SimpleMessageListenerContainer listenerContainer)
AmqpBaseInboundGatewaySpec
with provided SimpleMessageListenerContainer
.
Note: only endpoint options are available from spec.
The listenerContainer
options should be specified
on the provided SimpleMessageListenerContainer
.listenerContainer
- the listenerContainerpublic static AmqpBaseInboundGatewaySpec<?> inboundGateway(SimpleMessageListenerContainer listenerContainer, AmqpTemplate amqpTemplate)
AmqpBaseInboundGatewaySpec
with provided SimpleMessageListenerContainer
.
Note: only endpoint options are available from spec.
The listenerContainer
options should be specified
on the provided SimpleMessageListenerContainer
.listenerContainer
- the listenerContaineramqpTemplate
- the AmqpTemplate
to use.public static AmqpInboundChannelAdapterSpec inboundAdapter(ConnectionFactory connectionFactory, String... queueNames)
connectionFactory
- the connectionFactory.queueNames
- the queueNames.public static AmqpInboundChannelAdapterSpec inboundAdapter(ConnectionFactory connectionFactory, Queue... queues)
connectionFactory
- the connectionFactory.queues
- the queues.public static AmqpBaseInboundChannelAdapterSpec<?> inboundAdapter(SimpleMessageListenerContainer listenerContainer)
listenerContainer
- the listenerContainerpublic static AmqpOutboundEndpointSpec outboundAdapter(AmqpTemplate amqpTemplate)
amqpTemplate
- the amqpTemplate.public static AmqpOutboundEndpointSpec outboundGateway(AmqpTemplate amqpTemplate)
amqpTemplate
- the amqpTemplate.public static AmqpAsyncOutboundGatewaySpec asyncOutboundGateway(AsyncRabbitTemplate asyncRabbitTemplate)
asyncRabbitTemplate
- the AsyncRabbitTemplate
.public static <S extends AmqpPollableMessageChannelSpec<S>> AmqpPollableMessageChannelSpec<S> pollableChannel(ConnectionFactory connectionFactory)
S
- the spec type.connectionFactory
- the connectionFactory.public static <S extends AmqpPollableMessageChannelSpec<S>> AmqpPollableMessageChannelSpec<S> pollableChannel(String id, ConnectionFactory connectionFactory)
S
- the spec type.id
- the id.connectionFactory
- the connectionFactory.public static <S extends AmqpMessageChannelSpec<S>> AmqpMessageChannelSpec<S> channel(ConnectionFactory connectionFactory)
S
- the spec type.connectionFactory
- the connectionFactory.public static <S extends AmqpMessageChannelSpec<S>> AmqpMessageChannelSpec<S> channel(String id, ConnectionFactory connectionFactory)
S
- the spec type.id
- the id.connectionFactory
- the connectionFactory.public static AmqpPublishSubscribeMessageChannelSpec publishSubscribeChannel(ConnectionFactory connectionFactory)
connectionFactory
- the connectionFactory.public static AmqpPublishSubscribeMessageChannelSpec publishSubscribeChannel(String id, ConnectionFactory connectionFactory)
id
- the id.connectionFactory
- the connectionFactory.