Java org.springframework.amqp.rabbit.core RabbitTemplate fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.amqp.rabbit.core RabbitTemplate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.amqp.rabbit.core RabbitTemplate.

The text is from its open source code.

Constructor

RabbitTemplate(ConnectionFactory connectionFactory)
Create a rabbit template with default strategies and settings.
RabbitTemplate()
Convenient constructor for use with setter injection.

Method

voidafterPropertiesSet()
voidconvertAndSend(Object object)
voidconvertAndSend(String routingKey, final Object object)
voidconvertAndSend(Object message, MessagePostProcessor messagePostProcessor)
voidconvertAndSend(String routingKey, final Object object, CorrelationData correlationData)
voidconvertAndSend(String exchange, String routingKey, final Object object)
voidconvertAndSend(String routingKey, Object message, MessagePostProcessor messagePostProcessor)
voidconvertAndSend(Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData)
ObjectconvertSendAndReceive(final Object message)
ObjectconvertSendAndReceive(final Object message, @Nullable CorrelationData correlationData)
ObjectconvertSendAndReceive(final String routingKey, final Object message)
ObjectconvertSendAndReceive(final Object message, final MessagePostProcessor messagePostProcessor)
voiddoSend(Channel channel, String exchangeArg, String routingKeyArg, Message message, boolean mandatory, @Nullable CorrelationData correlationData)
Send the given message to the specified exchange.
Texecute(ChannelCallback action)
ConnectionFactorygetConnectionFactory()
MessageConvertergetMessageConverter()
Return the message converter for this template.
CollectiongetUnconfirmed(long age)
Gets unconfirmed correlation data older than age and removes them.
intgetUnconfirmedCount()
Gets unconfirmed messages count.
Messagereceive(String queueName)
Messagereceive(long timeoutMillis)
Messagereceive()
Messagereceive(final String queueName, final long timeoutMillis)
ObjectreceiveAndConvert(String queueName)
ObjectreceiveAndConvert(long timeoutMillis)
TreceiveAndConvert(ParameterizedTypeReference type)
ObjectreceiveAndConvert()
voidsend(final String exchange, final String routingKey, final Message message)
voidsend(String routingKey, Message message)
MessagesendAndReceive(final String routingKey, final Message message, @Nullable CorrelationData correlationData)
MessagesendAndReceive(final String exchange, final String routingKey, final Message message)
MessagesendAndReceive(final Message message)
MessagesendAndReceive(final Message message, @Nullable CorrelationData correlationData)
MessagesendAndReceive(final String routingKey, final Message message)
voidsetAfterReceivePostProcessors(MessagePostProcessor... afterReceivePostProcessors)
Set a MessagePostProcessor that will be invoked immediately after a Channel#basicGet() and before any message conversion is performed.
voidsetBeforePublishPostProcessors(MessagePostProcessor... beforePublishPostProcessors)
Set MessagePostProcessor s that will be invoked immediately before invoking Channel#basicPublish() , after all other processing, except creating the BasicProperties from MessageProperties .
voidsetChannelTransacted(boolean transactional)
Flag to indicate that channels created by this component will be transactional.
voidsetConfirmCallback(ConfirmCallback confirmCallback)
voidsetConnectionFactory(ConnectionFactory connectionFactory)
Set the ConnectionFactory to use for obtaining RabbitMQ Connection Connections .
voidsetExchange(@Nullable String exchange)
The name of the default exchange to use for send operations when none is specified.
voidsetMessageConverter(MessageConverter messageConverter)
Set the message converter for this template.
voidsetReceiveTimeout(long receiveTimeout)
Specify the receive timeout in milliseconds when using receive() methods (for sendAndReceive() methods, refer to #setReplyTimeout(long) replyTimeout .
voidsetReplyTimeout(long replyTimeout)
Specify the timeout in milliseconds to be used when waiting for a reply Message when using one of the sendAndReceive methods.
voidsetRoutingKey(String routingKey)
The value of a default routing key to use for send operations when none is specified.
voidstop()