Example usage for org.springframework.amqp.support.postprocessor MessagePostProcessorUtils sort

List of usage examples for org.springframework.amqp.support.postprocessor MessagePostProcessorUtils sort

Introduction

In this page you can find the example usage for org.springframework.amqp.support.postprocessor MessagePostProcessorUtils sort.

Prototype

public static Collection<MessagePostProcessor> sort(Collection<MessagePostProcessor> processors) 

Source Link

Usage

From source file:org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.java

/**
 * Set {@link MessagePostProcessor}s that will be applied after message reception, before
 * invoking the {@link MessageListener}. Often used to decompress data.  Processors are invoked in order,
 * depending on {@code PriorityOrder}, {@code Order} and finally unordered.
 * @param afterReceivePostProcessors the post processor.
 * @since 1.4.2//from ww  w. ja v a  2  s.  c  om
 */
public void setAfterReceivePostProcessors(MessagePostProcessor... afterReceivePostProcessors) {
    Assert.notNull(afterReceivePostProcessors, "'afterReceivePostProcessors' cannot be null");
    Assert.noNullElements(afterReceivePostProcessors, "'afterReceivePostProcessors' cannot have null elements");
    this.afterReceivePostProcessors = MessagePostProcessorUtils.sort(Arrays.asList(afterReceivePostProcessors));
}