public interface MessageSenderEndpoint extends MessageEndpoint
Modifier and Type | Method and Description |
---|---|
<T> java.util.concurrent.CompletableFuture<java.lang.Void> |
send(Message<T> message)
Send a single
Message to the channel. |
<T> java.util.concurrent.CompletableFuture<java.lang.Void> |
sendBatch(java.util.stream.Stream<Message<T>> batch)
Send a batch of
messages to the channel. |
getChannelName, getEndpointType, getInterceptorChain, intercept
<T> java.util.concurrent.CompletableFuture<java.lang.Void> send(@Nonnull Message<T> message)
Message
to the channel.T
- the type of the message payloadmessage
- the message<T> java.util.concurrent.CompletableFuture<java.lang.Void> sendBatch(@Nonnull java.util.stream.Stream<Message<T>> batch)
messages
to the channel.T
- the type of the message payloadbatch
- the batch of messages