Uses of Interface
org.springframework.amqp.core.MessagePostProcessor
Package
Description
Provides core classes for the spring AMQP abstraction.
Provides top-level classes for Spring Rabbit.
Provides classes supporting the Rabbit XML namespace.
Provides core classes for Spring Rabbit.
Provides classes for message listener containers.
Provides classes for adapting listeners.
Package for Spring AMQP message post processors.
Provides classes for stream producers.
-
Uses of MessagePostProcessor in org.springframework.amqp.core
Modifier and TypeMethodDescriptionvoid
AmqpTemplate.convertAndSend
(Object message, MessagePostProcessor messagePostProcessor) Convert a Java object to an AmqpMessage
and send it to a default exchange with a default routing key.void
AmqpTemplate.convertAndSend
(String routingKey, Object message, MessagePostProcessor messagePostProcessor) Convert a Java object to an AmqpMessage
and send it to a default exchange with a specific routing key.void
AmqpTemplate.convertAndSend
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor) Convert a Java object to an AmqpMessage
and send it to a specific exchange with a specific routing key.AmqpTemplate.convertSendAndReceive
(Object message, MessagePostProcessor messagePostProcessor) Basic RPC pattern with conversion.AmqpTemplate.convertSendAndReceive
(String routingKey, Object message, MessagePostProcessor messagePostProcessor) Basic RPC pattern with conversion.AmqpTemplate.convertSendAndReceive
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor) Basic RPC pattern with conversion.<C> CompletableFuture<C>
AsyncAmqpTemplate.convertSendAndReceive
(Object object, MessagePostProcessor messagePostProcessor) Convert the object to a message and send it to the default exchange with the default routing key after invoking theMessagePostProcessor
.<C> CompletableFuture<C>
AsyncAmqpTemplate.convertSendAndReceive
(String routingKey, Object object, MessagePostProcessor messagePostProcessor) Convert the object to a message and send it to the default exchange with the provided routing key after invoking theMessagePostProcessor
.<C> CompletableFuture<C>
AsyncAmqpTemplate.convertSendAndReceive
(String exchange, String routingKey, Object object, MessagePostProcessor messagePostProcessor) Convert the object to a message and send it to the provided exchange and routing key after invoking theMessagePostProcessor
.<T> T
AmqpTemplate.convertSendAndReceiveAsType
(Object message, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<T> responseType) Basic RPC pattern with conversion.<T> T
AmqpTemplate.convertSendAndReceiveAsType
(String routingKey, Object message, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<T> responseType) Basic RPC pattern with conversion.<T> T
AmqpTemplate.convertSendAndReceiveAsType
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<T> responseType) Basic RPC pattern with conversion.<C> CompletableFuture<C>
AsyncAmqpTemplate.convertSendAndReceiveAsType
(Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType) Convert the object to a message and send it to the default exchange with the default routing key after invoking theMessagePostProcessor
.<C> CompletableFuture<C>
AsyncAmqpTemplate.convertSendAndReceiveAsType
(String routingKey, Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType) Convert the object to a message and send it to the default exchange with the provided routing key after invoking theMessagePostProcessor
.<C> CompletableFuture<C>
AsyncAmqpTemplate.convertSendAndReceiveAsType
(String exchange, String routingKey, Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType) Convert the object to a message and send it to the provided exchange and routing key after invoking theMessagePostProcessor
. -
Uses of MessagePostProcessor in org.springframework.amqp.rabbit
Modifier and TypeMethodDescription<C> RabbitConverterFuture<C>
AsyncRabbitTemplate.convertSendAndReceive
(Object object, MessagePostProcessor messagePostProcessor) <C> RabbitConverterFuture<C>
AsyncRabbitTemplate.convertSendAndReceive
(String routingKey, Object object, MessagePostProcessor messagePostProcessor) <C> RabbitConverterFuture<C>
AsyncRabbitTemplate.convertSendAndReceive
(String exchange, String routingKey, Object object, MessagePostProcessor messagePostProcessor) <C> RabbitConverterFuture<C>
AsyncRabbitTemplate.convertSendAndReceiveAsType
(Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType) <C> RabbitConverterFuture<C>
AsyncRabbitTemplate.convertSendAndReceiveAsType
(String routingKey, Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType) <C> RabbitConverterFuture<C>
AsyncRabbitTemplate.convertSendAndReceiveAsType
(String exchange, String routingKey, Object object, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<C> responseType) -
Uses of MessagePostProcessor in org.springframework.amqp.rabbit.config
Modifier and TypeMethodDescriptionvoid
AbstractRabbitListenerContainerFactory.setAfterReceivePostProcessors
(MessagePostProcessor... postProcessors) Set post processors which will be applied after the Message is received.void
ListenerContainerFactoryBean.setAfterReceivePostProcessors
(MessagePostProcessor... afterReceivePostProcessors) void
BaseRabbitListenerContainerFactory.setBeforeSendReplyPostProcessors
(MessagePostProcessor... postProcessors) Set post processors that will be applied before sending replies; added to each message listener adapter. -
Uses of MessagePostProcessor in org.springframework.amqp.rabbit.core
Modifier and TypeMethodDescriptionRabbitTemplate.getAfterReceivePostProcessors()
Return configured after receiveMessagePostProcessor
s ornull
.RabbitTemplate.getBeforePublishPostProcessors()
Return configured before postMessagePostProcessor
s ornull
.Modifier and TypeMethodDescriptionvoid
RabbitTemplate.addAfterReceivePostProcessors
(MessagePostProcessor... afterReceivePostProcessors) AddMessagePostProcessor
that will be invoked immediately after aChannel#basicGet()
and before any message conversion is performed.void
RabbitTemplate.addBeforePublishPostProcessors
(MessagePostProcessor... beforePublishPostProcessors) AddMessagePostProcessor
that will be invoked immediately before invokingChannel#basicPublish()
, after all other processing, except creating theAMQP.BasicProperties
fromMessageProperties
.void
RabbitOperations.convertAndSend
(Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) Convert a Java object to an AmqpMessage
and send it to a default exchange with a default routing key.void
RabbitOperations.convertAndSend
(String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) Convert a Java object to an AmqpMessage
and send it to a default exchange with a specific routing key.void
RabbitOperations.convertAndSend
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) Convert a Java object to an AmqpMessage
and send it to a specific exchange with a specific routing key.void
RabbitTemplate.convertAndSend
(Object message, MessagePostProcessor messagePostProcessor) void
RabbitTemplate.convertAndSend
(Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) void
RabbitTemplate.convertAndSend
(String routingKey, Object message, MessagePostProcessor messagePostProcessor) void
RabbitTemplate.convertAndSend
(String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) void
RabbitTemplate.convertAndSend
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor) void
RabbitTemplate.convertAndSend
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) RabbitOperations.convertSendAndReceive
(Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) Basic RPC pattern with conversion.RabbitOperations.convertSendAndReceive
(String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) Basic RPC pattern with conversion.RabbitOperations.convertSendAndReceive
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) Basic RPC pattern with conversion.RabbitTemplate.convertSendAndReceive
(Object message, MessagePostProcessor messagePostProcessor) RabbitTemplate.convertSendAndReceive
(Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) RabbitTemplate.convertSendAndReceive
(String routingKey, Object message, MessagePostProcessor messagePostProcessor) RabbitTemplate.convertSendAndReceive
(String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) RabbitTemplate.convertSendAndReceive
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor) RabbitTemplate.convertSendAndReceive
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData) <T> T
RabbitOperations.convertSendAndReceiveAsType
(Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData, ParameterizedTypeReference<T> responseType) Basic RPC pattern with conversion.<T> T
RabbitOperations.convertSendAndReceiveAsType
(String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData, ParameterizedTypeReference<T> responseType) Basic RPC pattern with conversion.<T> T
RabbitOperations.convertSendAndReceiveAsType
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData, ParameterizedTypeReference<T> responseType) Basic RPC pattern with conversion.<T> T
RabbitTemplate.convertSendAndReceiveAsType
(Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData, ParameterizedTypeReference<T> responseType) <T> T
RabbitTemplate.convertSendAndReceiveAsType
(Object message, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<T> responseType) <T> T
RabbitTemplate.convertSendAndReceiveAsType
(String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData, ParameterizedTypeReference<T> responseType) <T> T
RabbitTemplate.convertSendAndReceiveAsType
(String routingKey, Object message, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<T> responseType) <T> T
RabbitTemplate.convertSendAndReceiveAsType
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, CorrelationData correlationData, ParameterizedTypeReference<T> responseType) <T> T
RabbitTemplate.convertSendAndReceiveAsType
(String exchange, String routingKey, Object message, MessagePostProcessor messagePostProcessor, ParameterizedTypeReference<T> responseType) 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.boolean
RabbitTemplate.removeAfterReceivePostProcessor
(MessagePostProcessor afterReceivePostProcessor) Remove the providedMessagePostProcessor
from theRabbitTemplate.afterReceivePostProcessors
list.boolean
RabbitTemplate.removeBeforePublishPostProcessor
(MessagePostProcessor beforePublishPostProcessor) Remove the providedMessagePostProcessor
from theRabbitTemplate.beforePublishPostProcessors
list.void
RabbitTemplate.setAfterReceivePostProcessors
(MessagePostProcessor... afterReceivePostProcessors) Set aMessagePostProcessor
that will be invoked immediately after aChannel#basicGet()
and before any message conversion is performed.void
RabbitTemplate.setBeforePublishPostProcessors
(MessagePostProcessor... beforePublishPostProcessors) SetMessagePostProcessor
s that will be invoked immediately before invokingChannel#basicPublish()
, after all other processing, except creating theAMQP.BasicProperties
fromMessageProperties
. -
Uses of MessagePostProcessor in org.springframework.amqp.rabbit.listener
Modifier and TypeMethodDescriptionprotected Collection<MessagePostProcessor>
AbstractMessageListenerContainer.getAfterReceivePostProcessors()
Modifier and TypeMethodDescriptionvoid
AbstractMessageListenerContainer.addAfterReceivePostProcessors
(MessagePostProcessor... postprocessors) AddMessagePostProcessor
s that will be applied after message reception, before invoking theMessageListener
.boolean
AbstractMessageListenerContainer.removeAfterReceivePostProcessor
(MessagePostProcessor afterReceivePostProcessor) Remove the providedMessagePostProcessor
from theAbstractMessageListenerContainer.afterReceivePostProcessors
list.void
AbstractMessageListenerContainer.setAfterReceivePostProcessors
(MessagePostProcessor... afterReceivePostProcessors) SetMessagePostProcessor
s that will be applied after message reception, before invoking theMessageListener
. -
Uses of MessagePostProcessor in org.springframework.amqp.rabbit.listener.adapter
Modifier and TypeMethodDescriptionvoid
AbstractAdaptableMessageListener.setBeforeSendReplyPostProcessors
(MessagePostProcessor... beforeSendReplyPostProcessors) Set post processors that will be applied before sending replies. -
Uses of MessagePostProcessor in org.springframework.amqp.support.postprocessor
Modifier and TypeClassDescriptionclass
Base class for post processors that compress the message body.class
Base class for post processors that decompress the message body if theMessageProperties.SPRING_AUTO_DECOMPRESS
header is true or to optionally always decompress if the content encoding matchesAbstractDecompressingPostProcessor.getEncoding()
, or starts withAbstractDecompressingPostProcessor.getEncoding()
+ ":", in which case the encoding following the colon becomes the final content encoding of the decompressed message.class
Base class for post processors based onDeflater
.class
A post processor that uses aDeflaterOutputStream
to compress the message body.class
AMessagePostProcessor
that delegates to one of itsMessagePostProcessor
s depending on the content encoding.class
A post processor that uses aGZIPInputStream
to decompress the message body.class
A post processor that uses aGZIPOutputStream
to compress the message body.class
A post processor that uses aInflaterInputStream
to decompress the message body.class
A post processor that uses aZipInputStream
to decompress the message body.class
A post processor that uses aZipOutputStream
to compress the message body.Modifier and TypeMethodDescriptionDelegatingDecompressingPostProcessor.removeDecompressor
(String contentEncoding) Remove the decompressor for this encoding; content will not be decompressed even if theMessageProperties.SPRING_AUTO_DECOMPRESS
header is true.Modifier and TypeMethodDescriptionstatic Collection<MessagePostProcessor>
MessagePostProcessorUtils.sort
(Collection<MessagePostProcessor> processors) Modifier and TypeMethodDescriptionvoid
DelegatingDecompressingPostProcessor.addDecompressor
(String contentEncoding, MessagePostProcessor decompressor) Add a message post processor to the map of decompressing MessageProcessors.Modifier and TypeMethodDescriptionvoid
DelegatingDecompressingPostProcessor.setDecompressors
(Map<String, MessagePostProcessor> decompressors) Replace all the decompressors.static Collection<MessagePostProcessor>
MessagePostProcessorUtils.sort
(Collection<MessagePostProcessor> processors) -
Uses of MessagePostProcessor in org.springframework.rabbit.stream.producer
Modifier and TypeMethodDescriptionRabbitStreamOperations.convertAndSend
(Object message, MessagePostProcessor mpp) Convert to and send a Spring AMQP message.RabbitStreamTemplate.convertAndSend
(Object message, MessagePostProcessor mpp)