public interface MessageSender
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
send(Message<?> message)
Send a single
Message to the channel. |
java.util.concurrent.CompletableFuture<java.lang.Void> |
sendBatch(java.util.stream.Stream<? extends Message<?>> batch)
Send a batch of
messages to the channel. |
java.util.concurrent.CompletableFuture<java.lang.Void> send(@Nonnull
Message<?> message)
Message to the channel.message - the messagejava.util.concurrent.CompletableFuture<java.lang.Void> sendBatch(@Nonnull
java.util.stream.Stream<? extends Message<?>> batch)
messages to the channel.batch - the batch of messages