public class ChannelSyncProducer extends ChannelProducer implements ReplyConsumer
| Constructor and Description |
|---|
ChannelSyncProducer(String name,
ChannelSyncEndpointConfiguration endpointConfiguration)
Default constructor using endpoint configuration.
|
| Modifier and Type | Method and Description |
|---|---|
CorrelationManager<Message> |
getCorrelationManager()
Gets the correlation manager.
|
Message |
receive(String selector,
TestContext context)
Receive message with a message selector and default timeout.
|
Message |
receive(String selector,
TestContext context,
long timeout)
Receive message with a message selector and a receive timeout.
|
Message |
receive(TestContext context)
Receive message with default timeout.
|
Message |
receive(TestContext context,
long timeout)
Receive message with a given timeout.
|
void |
send(Message message,
TestContext context)
Sends the message.
|
void |
setCorrelationManager(CorrelationManager<Message> correlationManager)
Sets the correlation manager.
|
getDestinationChannel, getDestinationChannelName, getName, resolveChannelNamepublic ChannelSyncProducer(String name, ChannelSyncEndpointConfiguration endpointConfiguration)
name - endpointConfiguration - public void send(Message message, TestContext context)
Producersend in interface Producersend in class ChannelProducermessage - the message object to send.public Message receive(TestContext context)
Consumerpublic Message receive(String selector, TestContext context)
SelectiveConsumerreceive in interface SelectiveConsumerpublic Message receive(TestContext context, long timeout)
Consumerpublic Message receive(String selector, TestContext context, long timeout)
SelectiveConsumerreceive in interface SelectiveConsumertimeout - @returnpublic CorrelationManager<Message> getCorrelationManager()
public void setCorrelationManager(CorrelationManager<Message> correlationManager)
correlationManager - Copyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.