Package de.otto.synapse.endpoint.sender
Interface MessageSender
- All Known Subinterfaces:
MessageSenderEndpoint
- All Known Implementing Classes:
AbstractMessageSenderEndpoint,DelegateMessageSenderEndpoint,TeeMessageSender
public interface MessageSender
Endpoint that is used by an application to send messages to a messaging channel.
- See Also:
-
Method Summary
-
Method Details
-
send
Send a singleMessageto the channel.- Parameters:
message- the message- Returns:
- a CompletableFuture that can be used for logging, error handling, waiting for completion, etc.
-
sendBatch
Send a batch ofmessagesto the channel.- Parameters:
batch- the batch of messages- Returns:
- a CompletableFuture that can be used for logging, error handling, waiting for completion, etc.
-