List of usage examples for org.springframework.messaging.simp.broker OrderedMessageSender configureOutboundChannel
static void configureOutboundChannel(MessageChannel channel, boolean preservePublishOrder)
From source file:org.springframework.messaging.simp.broker.OrderedMessageSenderTests.java
@Before public void setup() { this.executor = new ThreadPoolTaskExecutor(); this.executor.setCorePoolSize(Runtime.getRuntime().availableProcessors() * 2); this.executor.setAllowCoreThreadTimeOut(true); this.executor.afterPropertiesSet(); this.channel = new ExecutorSubscribableChannel(this.executor); OrderedMessageSender.configureOutboundChannel(this.channel, true); this.sender = new OrderedMessageSender(this.channel, logger); }