Uses of Class
org.springframework.amqp.core.Message
Package
Description
Provides core classes for the spring AMQP abstraction.
Provides top-level classes for Spring Rabbit.
Provides classes for message batching.
Provides core classes for Spring Rabbit.
Provides classes for message listener containers.
Provides classes for adapting listeners.
Provides Additional APIs for listeners.
Provides classes supporting Log4j 2 appenders.
Provides classes supporting Logback appenders.
Provides classes supporting retries.
Provides support classes for Spring Rabbit.
Provides classes for Micrometer support.
Classes for testing Spring AMQP applications.
Package for Spring AMQP support classes.
Provides classes for supporting message conversion.
Package for Spring AMQP message post processors.
Provides classes for stream producers.
Provides classes supporting retries.
Provides classes for message conversion.
-
Uses of Message in org.springframework.amqp.core
Modifier and TypeMethodDescriptionMessageBuilder.build()
ReturnedMessage.getMessage()
Get the message.AmqpReplyTimeoutException.getRequestMessage()
AmqpMessageReturnedException.getReturnedMessage()
MessagePostProcessor.postProcessMessage
(Message message) Change (or replace) the message.default Message
MessagePostProcessor.postProcessMessage
(Message message, Correlation correlation) Change (or replace) the message and/or change its correlation data.default Message
MessagePostProcessor.postProcessMessage
(Message message, Correlation correlation, String exchange, String routingKey) Change (or replace) the message and/or change its correlation data.AmqpTemplate.receive()
Receive a message if there is one from a default queue.AmqpTemplate.receive
(long timeoutMillis) Receive a message from a default queue, waiting up to the specified wait time if necessary for a message to become available.Receive a message if there is one from a specific queue.Receive a message from a specific queue, waiting up to the specified wait time if necessary for a message to become available.AmqpTemplate.sendAndReceive
(String exchange, String routingKey, Message message) Basic RPC pattern.AmqpTemplate.sendAndReceive
(String routingKey, Message message) Basic RPC pattern.AmqpTemplate.sendAndReceive
(Message message) Basic RPC pattern.Modifier and TypeMethodDescriptionAsyncAmqpTemplate.sendAndReceive
(String exchange, String routingKey, Message message) Send a message to the supplied exchange and routing key.AsyncAmqpTemplate.sendAndReceive
(String routingKey, Message message) Send a message to the default exchange with the supplied routing key.AsyncAmqpTemplate.sendAndReceive
(Message message) Send a message to the default exchange with the default routing key.Modifier and TypeMethodDescriptionstatic MessageBuilder
MessageBuilder.fromClonedMessage
(Message message) The final message will have a copy of the message body, the MessageProperties will be cloned (top level only).static MessageBuilder
MessageBuilder.fromMessage
(Message message) The final message body will be a direct reference to the message body, the MessageProperties will be a shallow copy.ReplyToAddressCallback.getReplyToAddress
(Message request, T reply) default void
void
Delivers a single message.MessagePostProcessor.postProcessMessage
(Message message) Change (or replace) the message.default Message
MessagePostProcessor.postProcessMessage
(Message message, Correlation correlation) Change (or replace) the message and/or change its correlation data.default Message
MessagePostProcessor.postProcessMessage
(Message message, Correlation correlation, String exchange, String routingKey) Change (or replace) the message and/or change its correlation data.void
Send a message to a specific exchange with a specific routing key.void
Send a message to a default exchange with a specific routing key.void
Send a message to a default exchange with a default routing key.AmqpTemplate.sendAndReceive
(String exchange, String routingKey, Message message) Basic RPC pattern.AmqpTemplate.sendAndReceive
(String routingKey, Message message) Basic RPC pattern.AmqpTemplate.sendAndReceive
(Message message) Basic RPC pattern.AsyncAmqpTemplate.sendAndReceive
(String exchange, String routingKey, Message message) Send a message to the supplied exchange and routing key.AsyncAmqpTemplate.sendAndReceive
(String routingKey, Message message) Send a message to the default exchange with the supplied routing key.AsyncAmqpTemplate.sendAndReceive
(Message message) Send a message to the default exchange with the default routing key.Modifier and TypeMethodDescriptionvoid
BatchMessageListener.onMessageBatch
(List<Message> messages) default void
MessageListener.onMessageBatch
(List<Message> messages) Delivers a batch of messages.ModifierConstructorDescriptionAmqpReplyTimeoutException
(String message, Message requestMessage) ReturnedMessage
(Message message, int replyCode, String replyText, String exchange, String routingKey) -
Uses of Message in org.springframework.amqp.rabbit
Modifier and TypeMethodDescriptionvoid
AsyncRabbitTemplate.sendAndReceive
(String exchange, String routingKey, Message message) AsyncRabbitTemplate.sendAndReceive
(String routingKey, Message message) AsyncRabbitTemplate.sendAndReceive
(Message message) ModifierConstructorDescriptionprotected
RabbitFuture
(String correlationId, Message requestMessage, BiConsumer<String, DirectReplyToMessageListenerContainer.ChannelHolder> canceler, Function<RabbitFuture<?>, ScheduledFuture<?>> timeoutTaskFunction) -
Uses of Message in org.springframework.amqp.rabbit.batch
Modifier and TypeMethodDescriptionBatchingStrategy.addToBatch
(String exchange, String routingKey, Message message) Add a message to the batch and optionally release the batch.SimpleBatchingStrategy.addToBatch
(String exch, String routKey, Message message) default void
Decode a message into fragments.void
Debatch a message that has a header withMessageProperties.SPRING_BATCH_FORMAT
set toMessageProperties.BATCH_FORMAT_LENGTH_HEADER4
.Modifier and TypeMethodDescriptiondefault void
Decode a message into fragments.void
Debatch a message that has a header withMessageProperties.SPRING_BATCH_FORMAT
set toMessageProperties.BATCH_FORMAT_LENGTH_HEADER4
. -
Uses of Message in org.springframework.amqp.rabbit.core
Modifier and TypeMethodDescriptionprotected Message
RabbitTemplate.convertMessageIfNecessary
(Object object) protected Message
RabbitTemplate.convertSendAndReceiveRaw
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) Convert and send a message and return the raw reply message, or null.protected Message
RabbitTemplate.doReceiveNoWait
(String queueName) Non-blocking receive.protected Message
RabbitTemplate.doSendAndReceive
(String exchange, String routingKey, Message message, CorrelationData correlationData) Send a message and wait for a reply.protected Message
RabbitTemplate.doSendAndReceiveWithFixed
(String exchange, String routingKey, Message message, CorrelationData correlationData) protected Message
RabbitTemplate.doSendAndReceiveWithTemporary
(String exchange, String routingKey, Message message, CorrelationData correlationData) AmqpNackReceivedException.getFailedMessage()
Return the failed message.RabbitTemplate.receive()
RabbitTemplate.receive
(long timeoutMillis) RabbitTemplate.sendAndReceive
(String exchange, String routingKey, Message message) RabbitTemplate.sendAndReceive
(String exchange, String routingKey, Message message, CorrelationData correlationData) RabbitTemplate.sendAndReceive
(String routingKey, Message message) RabbitTemplate.sendAndReceive
(String routingKey, Message message, CorrelationData correlationData) RabbitTemplate.sendAndReceive
(Message message) RabbitTemplate.sendAndReceive
(Message message, CorrelationData correlationData) Modifier and TypeMethodDescriptionprotected Message<?>
RabbitMessagingTemplate.convertAmqpMessage
(Message message) void
RabbitTemplate.doSend
(com.rabbitmq.client.Channel channel, String exchangeArg, String routingKeyArg, Message message, boolean mandatory, CorrelationData correlationData) Send the given message to the specified exchange.protected Message
RabbitTemplate.doSendAndReceive
(String exchange, String routingKey, Message message, CorrelationData correlationData) Send a message and wait for a reply.protected Message
RabbitTemplate.doSendAndReceiveWithFixed
(String exchange, String routingKey, Message message, CorrelationData correlationData) protected Message
RabbitTemplate.doSendAndReceiveWithTemporary
(String exchange, String routingKey, Message message, CorrelationData correlationData) RabbitTemplate.isMandatoryFor
(Message message) Return whether the provided message should be sent with the mandatory flag set.protected void
RabbitTemplate.logReceived
(String prefix, Message message) Log a received message.protected void
RabbitTemplate.observeTheSend
(com.rabbitmq.client.Channel channel, Message message, boolean mandatory, String exch, String rKey) void
void
CorrelationDataPostProcessor.postProcess
(Message message, CorrelationData correlationData) Update or replace the correlation data provided in the send method.void
BatchingRabbitTemplate.send
(String exchange, String routingKey, Message message, CorrelationData correlationData) void
RabbitOperations.send
(String exchange, String routingKey, Message message, CorrelationData correlationData) Send a message to a specific exchange with a specific routing key.default void
RabbitOperations.send
(String routingKey, Message message, CorrelationData correlationData) Send a message to the default exchange with a specific routing key.void
void
RabbitTemplate.send
(String exchange, String routingKey, Message message, CorrelationData correlationData) void
void
RabbitTemplate.send
(String routingKey, Message message, CorrelationData correlationData) void
RabbitTemplate.sendAndReceive
(String exchange, String routingKey, Message message) RabbitTemplate.sendAndReceive
(String exchange, String routingKey, Message message, CorrelationData correlationData) RabbitTemplate.sendAndReceive
(String routingKey, Message message) RabbitTemplate.sendAndReceive
(String routingKey, Message message, CorrelationData correlationData) RabbitTemplate.sendAndReceive
(Message message) RabbitTemplate.sendAndReceive
(Message message, CorrelationData correlationData) protected void
RabbitTemplate.sendToRabbit
(com.rabbitmq.client.Channel channel, String exchange, String routingKey, boolean mandatory, Message message) ModifierConstructorDescriptionAmqpNackReceivedException
(String message, Message failedMessage) Create an instance with the provided message and failed message. -
Uses of Message in org.springframework.amqp.rabbit.listener
Modifier and TypeMethodDescriptionBlockingQueueConsumer.nextMessage()
Main application-side API: wait for the next message delivery and return it.BlockingQueueConsumer.nextMessage
(long timeout) Main application-side API: wait for the next message delivery and return it.Modifier and TypeMethodDescription -
Uses of Message in org.springframework.amqp.rabbit.listener.adapter
Modifier and TypeMethodDescriptionprotected Message
AbstractAdaptableMessageListener.buildMessage
(com.rabbitmq.client.Channel channel, Object result, Type genericType) Build a Rabbit message to be sent as response based on the given result object.protected Message
MessagingMessageListenerAdapter.buildMessage
(com.rabbitmq.client.Channel channel, Object result, Type genericType) Build a Rabbit message to be sent as response based on the given result object.protected Message
AbstractAdaptableMessageListener.convert
(Object result, Type genericType, MessageConverter converter) Convert to a message, with reply content type based on settings.AbstractAdaptableMessageListener.ReplyExpressionRoot.getRequest()
Modifier and TypeMethodDescriptionprotected void
AbstractAdaptableMessageListener.asyncFailure
(Message request, com.rabbitmq.client.Channel channel, Throwable t, Object source) protected void
MessagingMessageListenerAdapter.asyncFailure
(Message request, com.rabbitmq.client.Channel channel, Throwable t, Object source) protected void
protected Object[]
MessageListenerAdapter.buildListenerArguments
(Object extractedMessage, com.rabbitmq.client.Channel channel, Message message) Build an array of arguments to be passed into the target listener method.protected void
AbstractAdaptableMessageListener.doHandleResult
(InvocationResult resultArg, Message request, com.rabbitmq.client.Channel channel, Object source) protected void
AbstractAdaptableMessageListener.doPublish
(com.rabbitmq.client.Channel channel, Address replyTo, Message message) protected Object
AbstractAdaptableMessageListener.extractMessage
(Message message) Extract the message body from the given Rabbit message.protected Object
MessagingMessageListenerAdapter.MessagingMessageConverterAdapter.extractPayload
(Message message) protected String
MessageListenerAdapter.getListenerMethodName
(Message originalMessage, Object extractedMessage) Determine the name of the listener method that will handle the given message.protected String
AbstractAdaptableMessageListener.getReceivedExchange
(Message request) protected Address
AbstractAdaptableMessageListener.getReplyToAddress
(Message request, Object source, InvocationResult result) Determine a reply-to Address for the given message.protected void
AbstractAdaptableMessageListener.handleResult
(InvocationResult resultArg, Message request, com.rabbitmq.client.Channel channel) Handle the given result object returned from the listener method, sending a response message back.protected void
AbstractAdaptableMessageListener.handleResult
(InvocationResult resultArg, Message request, com.rabbitmq.client.Channel channel, Object source) Handle the given result object returned from the listener method, sending a response message back.protected InvocationResult
MessagingMessageListenerAdapter.invokeHandler
(Message amqpMessage, com.rabbitmq.client.Channel channel, Message<?> message) Invoke the handler, wrapping any exception to aListenerExecutionFailedException
with a dedicated error message.protected void
MessagingMessageListenerAdapter.invokeHandlerAndProcessResult
(Message amqpMessage, com.rabbitmq.client.Channel channel, Message<?> message) protected Object
MessageListenerAdapter.invokeListenerMethod
(String methodName, Object[] arguments, Message originalMessage) Invoke the specified listener method.void
SpringChannelAwareMessageListener
entry point.void
protected void
AbstractAdaptableMessageListener.postProcessChannel
(com.rabbitmq.client.Channel channel, Message response) Post-process the given message before sending the response.protected void
AbstractAdaptableMessageListener.postProcessResponse
(Message request, Message response) Post-process the given response message before it will be sent.protected void
AbstractAdaptableMessageListener.sendResponse
(com.rabbitmq.client.Channel channel, Address replyTo, Message messageIn) Send the given response message to the given destination.protected Message<?>
BatchMessagingMessageListenerAdapter.toMessagingMessage
(Message amqpMessage) protected Message<?>
MessagingMessageListenerAdapter.toMessagingMessage
(Message amqpMessage) Modifier and TypeMethodDescriptionvoid
BatchMessagingMessageListenerAdapter.onMessageBatch
(List<Message> messages, com.rabbitmq.client.Channel channel) ModifierConstructorDescriptionprotected
ReplyExpressionRoot
(Message request, Object source, Object result) -
Uses of Message in org.springframework.amqp.rabbit.listener.api
Modifier and TypeMethodDescriptionRabbitListenerErrorHandler.handleError
(Message amqpMessage, com.rabbitmq.client.Channel channel, Message<?> message, ListenerExecutionFailedException exception) Handle the error.default void
default void
void
Callback for processing a received Rabbit message.Modifier and TypeMethodDescriptionvoid
ChannelAwareBatchMessageListener.onMessageBatch
(List<Message> messages, com.rabbitmq.client.Channel channel) default void
ChannelAwareMessageListener.onMessageBatch
(List<Message> messages, com.rabbitmq.client.Channel channel) -
Uses of Message in org.springframework.amqp.rabbit.log4j2
Modifier and TypeMethodDescriptionprotected Message
AmqpAppender.postProcessMessageBeforeSend
(Message message, AmqpAppender.Event event) Subclasses may modify the final message before sending.Modifier and TypeMethodDescriptionprotected Message
AmqpAppender.postProcessMessageBeforeSend
(Message message, AmqpAppender.Event event) Subclasses may modify the final message before sending. -
Uses of Message in org.springframework.amqp.rabbit.logback
Modifier and TypeMethodDescriptionprotected Message
AmqpAppender.postProcessMessageBeforeSend
(Message message, AmqpAppender.Event event) Subclasses may modify the final message before sending.Modifier and TypeMethodDescriptionprotected Message
AmqpAppender.postProcessMessageBeforeSend
(Message message, AmqpAppender.Event event) Subclasses may modify the final message before sending. -
Uses of Message in org.springframework.amqp.rabbit.retry
Modifier and TypeMethodDescriptionRepublishMessageRecoverer.additionalHeaders
(Message message, Throwable cause) Subclasses can override this method to add more headers to the republished message.protected void
Send the message.protected void
Generate a unique key for the message that is repeatable on redelivery.boolean
Query a message to see if it has been seen before.protected String
RepublishMessageRecoverer.prefixedOriginalRoutingKey
(Message message) The default behavior of this method is to append the received routing key to theroutingKeyPrefix
.void
default void
void
Callback for message that was consumed but failed all retry attempts.void
void
-
Uses of Message in org.springframework.amqp.rabbit.support
ModifierConstructorDescriptionListenerExecutionFailedException
(String msg, Throwable cause, Message... failedMessage) Constructor for ListenerExecutionFailedException. -
Uses of Message in org.springframework.amqp.rabbit.support.micrometer
ModifierConstructorDescriptionRabbitMessageReceiverContext
(Message message, String listenerId) RabbitMessageSenderContext
(Message message, String beanName, String destination) Deprecated.RabbitMessageSenderContext
(Message message, String beanName, String exchange, String routingKey) Create an instanceRabbitMessageSenderContext
. -
Uses of Message in org.springframework.amqp.rabbit.test
Modifier and TypeMethodDescriptionprotected Message
TestRabbitTemplate.doSendAndReceiveWithFixed
(String exchange, String routingKey, Message message, CorrelationData correlationData) Modifier and TypeMethodDescriptionprotected Message
TestRabbitTemplate.doSendAndReceiveWithFixed
(String exchange, String routingKey, Message message, CorrelationData correlationData) protected void
TestRabbitTemplate.sendToRabbit
(com.rabbitmq.client.Channel channel, String exchange, String routingKey, boolean mandatory, Message message) -
Uses of Message in org.springframework.amqp.support
Modifier and TypeMethodDescriptionstatic Message
SendRetryContextAccessor.getMessage
(org.springframework.retry.RetryContext context) Retrieve theMessage
from the context. -
Uses of Message in org.springframework.amqp.support.converter
Modifier and TypeMethodDescriptionprotected Message
AbstractJackson2MessageConverter.createMessage
(Object objectToConvert, MessageProperties messageProperties) protected Message
AbstractJackson2MessageConverter.createMessage
(Object objectToConvert, MessageProperties messageProperties, Type genericType) protected abstract Message
AbstractMessageConverter.createMessage
(Object object, MessageProperties messageProperties) Crate a message from the payload object and message properties provided.protected Message
AbstractMessageConverter.createMessage
(Object object, MessageProperties messageProperties, Type genericType) Crate a message from the payload object and message properties provided.protected Message
MarshallingMessageConverter.createMessage
(Object object, MessageProperties messageProperties) Marshals the given object to aMessage
.protected Message
SerializerMessageConverter.createMessage
(Object object, MessageProperties messageProperties) Creates an AMQP Message from the provided Object.protected Message
SimpleMessageConverter.createMessage
(Object object, MessageProperties messageProperties) Creates an AMQP Message from the provided Object.final Message
AbstractMessageConverter.toMessage
(Object object, MessageProperties messageProperties) final Message
AbstractMessageConverter.toMessage
(Object object, MessageProperties messagePropertiesArg, Type genericType) ContentTypeDelegatingMessageConverter.toMessage
(Object object, MessageProperties messageProperties) MessageConverter.toMessage
(Object object, MessageProperties messageProperties) Convert a Java object to a Message.default Message
MessageConverter.toMessage
(Object object, MessageProperties messageProperties, Type genericType) Convert a Java object to a Message.MessagingMessageConverter.toMessage
(Object object, MessageProperties messageProperties) RemoteInvocationAwareMessageConverterAdapter.toMessage
(Object object, MessageProperties messageProperties) Modifier and TypeMethodDescriptionprotected Object
MessagingMessageConverter.extractPayload
(Message message) Extract the payload of the specifiedMessage
.AbstractJackson2MessageConverter.fromMessage
(Message message) AbstractJackson2MessageConverter.fromMessage
(Message message, Object conversionHint) A variant ofMessageConverter.fromMessage(Message)
which takes an extra conversion context as an argument.ContentTypeDelegatingMessageConverter.fromMessage
(Message message) MarshallingMessageConverter.fromMessage
(Message message) Unmarshals the givenMessage
into an object.MessageConverter.fromMessage
(Message message) Convert from a Message to a Java object.MessagingMessageConverter.fromMessage
(Message message) RemoteInvocationAwareMessageConverterAdapter.fromMessage
(Message message) SerializerMessageConverter.fromMessage
(Message message) Converts from a AMQP Message to an Object.SimpleMessageConverter.fromMessage
(Message message) Converts from a AMQP Message to an Object.SmartMessageConverter.fromMessage
(Message message, Object conversionHint) A variant ofMessageConverter.fromMessage(Message)
which takes an extra conversion context as an argument. -
Uses of Message in org.springframework.amqp.support.postprocessor
Modifier and TypeMethodDescriptionAbstractCompressingPostProcessor.postProcessMessage
(Message message) AbstractDecompressingPostProcessor.postProcessMessage
(Message message) DelegatingDecompressingPostProcessor.postProcessMessage
(Message message) Modifier and TypeMethodDescriptionAbstractCompressingPostProcessor.postProcessMessage
(Message message) AbstractDecompressingPostProcessor.postProcessMessage
(Message message) DelegatingDecompressingPostProcessor.postProcessMessage
(Message message) -
Uses of Message in org.springframework.rabbit.stream.producer
Modifier and TypeMethodDescriptionSend a Spring AMQP message. -
Uses of Message in org.springframework.rabbit.stream.retry
-
Uses of Message in org.springframework.rabbit.stream.support.converter
Modifier and TypeMethodDescriptionDefaultStreamMessageConverter.toMessage
(Object object, StreamMessageProperties messageProperties) default Message
StreamMessageConverter.toMessage
(Object object, MessageProperties messageProperties) StreamMessageConverter.toMessage
(Object object, StreamMessageProperties messageProperties) Modifier and TypeMethodDescriptioncom.rabbitmq.stream.Message
DefaultStreamMessageConverter.fromMessage
(Message message) com.rabbitmq.stream.Message
StreamMessageConverter.fromMessage
(Message message)