public class ChannelSyncConsumer extends ChannelConsumer implements ReplyProducer
| Constructor and Description |
|---|
ChannelSyncConsumer(String name,
ChannelSyncEndpointConfiguration endpointConfiguration)
Default constructor using emdpoint configuration.
|
| Modifier and Type | Method and Description |
|---|---|
CorrelationManager<org.springframework.messaging.MessageChannel> |
getCorrelationManager()
Gets the correlation manager.
|
Message |
receive(String selector,
TestContext context,
long timeout)
Receive message with a message selector and a receive timeout.
|
void |
saveReplyMessageChannel(Message receivedMessage,
TestContext context)
Store reply message channel.
|
void |
send(Message message,
TestContext context)
Sends the message.
|
void |
setCorrelationManager(CorrelationManager<org.springframework.messaging.MessageChannel> correlationManager)
Sets the correlation manager.
|
getDestinationChannel, getDestinationChannelName, resolveChannelNamereceive, receivegetName, receivepublic ChannelSyncConsumer(String name, ChannelSyncEndpointConfiguration endpointConfiguration)
name - endpointConfiguration - public Message receive(String selector, TestContext context, long timeout)
SelectiveConsumerreceive in interface SelectiveConsumerreceive in class ChannelConsumertimeout - @returnpublic void send(Message message, TestContext context)
Producerpublic void saveReplyMessageChannel(Message receivedMessage, TestContext context)
receivedMessage - context - public CorrelationManager<org.springframework.messaging.MessageChannel> getCorrelationManager()
public void setCorrelationManager(CorrelationManager<org.springframework.messaging.MessageChannel> correlationManager)
correlationManager - Copyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.