M - message typepublic interface MessageVerifier<M>
| Modifier and Type | Method and Description |
|---|---|
M |
receive(String destination)
Receives the message from the given destination.
|
M |
receive(String destination,
long timeout,
TimeUnit timeUnit)
Receives the message from the given destination.
|
void |
send(M 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.
|
void send(M message, String destination)
message - to senddestination - destination to which the message will be sent<T> void send(T payload,
Map<String,Object> headers,
String destination)
T - payload typepayload - payload to sendheaders - headers to senddestination - destination to which the message will be sentM receive(String destination, long timeout, TimeUnit timeUnit)
destination - destination from which the message will be receivedtimeout - timeout to wait for the messagetimeUnit - param to define the unit of timeoutCopyright © 2016–2019 Spring. All rights reserved.