M - message typepublic interface MessageVerifierSender<M>
| Modifier and Type | Method and Description |
|---|---|
default void |
send(M message,
String destination)
Sends the message to the given destination.
|
void |
send(M message,
String destination,
YamlContract contract)
Sends the message to the given destination.
|
default <T> void |
send(T payload,
Map<String,Object> headers,
String destination)
Sends the given payload with headers, 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.
|
default void send(M message, String destination)
message - to senddestination - destination to which the message will be sentdefault <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 sentvoid send(M message, String destination, @Nullable YamlContract contract)
message - to senddestination - destination to which the message will be sentcontract - contract related to this method<T> void send(T payload,
Map<String,Object> headers,
String destination,
@Nullable
YamlContract contract)
T - payload typepayload - payload to sendheaders - headers to senddestination - destination to which the message will be sentcontract - contract related to this methodCopyright © 2016–2020 Spring. All rights reserved.