public class CamelStubMessages extends Object implements MessageVerifier<org.apache.camel.Message>
| Constructor and Description |
|---|
CamelStubMessages(org.apache.camel.CamelContext context,
org.apache.camel.ProducerTemplate producerTemplate,
org.apache.camel.ConsumerTemplate consumerTemplate) |
| Modifier and Type | Method and Description |
|---|---|
String |
finalDestination(String destination,
String additionalOpts,
ContractVerifierMessageMetadata verifierMessageMetadata) |
org.apache.camel.Message |
receive(String destination,
long timeout,
TimeUnit timeUnit,
YamlContract contract)
Receives the message from the given destination.
|
org.apache.camel.Message |
receive(String destination,
YamlContract contract)
Receives the message from the given destination.
|
void |
send(org.apache.camel.Message message,
String destination,
YamlContract contract)
Sends the message to the given destination.
|
<T> void |
send(T payload,
Map<String,Object> headers,
String destination,
YamlContract contract)
Sends the given payload with headers, to the given destination.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsend, sendreceive, receivepublic CamelStubMessages(org.apache.camel.CamelContext context,
org.apache.camel.ProducerTemplate producerTemplate,
org.apache.camel.ConsumerTemplate consumerTemplate)
public void send(org.apache.camel.Message message,
String destination,
YamlContract contract)
MessageVerifierSendersend in interface MessageVerifierSender<org.apache.camel.Message>message - to senddestination - destination to which the message will be sentcontract - contract related to this methodpublic String finalDestination(String destination, String additionalOpts, ContractVerifierMessageMetadata verifierMessageMetadata)
public <T> void send(T payload,
Map<String,Object> headers,
String destination,
YamlContract contract)
MessageVerifierSendersend in interface MessageVerifierSender<org.apache.camel.Message>T - payload typepayload - payload to sendheaders - headers to senddestination - destination to which the message will be sentcontract - contract related to this methodpublic org.apache.camel.Message receive(String destination, long timeout, TimeUnit timeUnit, YamlContract contract)
MessageVerifierReceiverreceive in interface MessageVerifierReceiver<org.apache.camel.Message>destination - destination from which the message will be receivedtimeout - timeout to wait for the messagetimeUnit - param to define the unit of timeoutcontract - contract related to this methodpublic org.apache.camel.Message receive(String destination, YamlContract contract)
MessageVerifierReceiverreceive in interface MessageVerifierReceiver<org.apache.camel.Message>destination - destination from which the message will be receivedcontract - contract related to this methodCopyright © 2016–2020 Spring. All rights reserved.