public class NoOpStubMessages extends Object implements MessageVerifier<Object>
| Constructor and Description |
|---|
NoOpStubMessages() |
| Modifier and Type | Method and Description |
|---|---|
Object |
receive(String destination)
Receives the message from the given destination.
|
Object |
receive(String destination,
long timeout,
TimeUnit timeUnit)
Receives the message from the given destination.
|
void |
send(Object message,
String destination)
Sends the message to the given destination.
|
<T> void |
send(T payload,
Map<String,Object> headers,
String destination)
Sends the given payload with headers, to the given destination.
|
public void send(Object message, String destination)
MessageVerifierSendersend in interface MessageVerifierSender<Object>message - to senddestination - destination to which the message will be sentpublic <T> void send(T payload,
Map<String,Object> headers,
String destination)
MessageVerifierSendersend in interface MessageVerifierSender<Object>T - payload typepayload - payload to sendheaders - headers to senddestination - destination to which the message will be sentpublic Object receive(String destination, long timeout, TimeUnit timeUnit)
MessageVerifierReceiverreceive in interface MessageVerifierReceiver<Object>destination - destination from which the message will be receivedtimeout - timeout to wait for the messagetimeUnit - param to define the unit of timeoutpublic Object receive(String destination)
MessageVerifierReceiverreceive in interface MessageVerifierReceiver<Object>destination - destination from which the message will be receivedCopyright © 2016–2019 Spring. All rights reserved.