public interface AsyncWriter
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<InitResult> |
init()
Initialize internal threads in the background.
|
CompletableFuture<WriteAck> |
send(Message message)
Send message.
|
CompletableFuture<WriteAck> |
send(Message message,
SendSettings settings)
Send message.
|
CompletableFuture<Void> |
shutdown()
Stops internal threads and makes cleanup in background.
|
CompletableFuture<InitResult> init()
CompletableFuture with InitResult containing initialization data like lastSeqNoCompletableFuture<WriteAck> send(Message message) throws QueueOverflowException
message - message data to writeCompletableFuture with WriteAck for write acknowledgementQueueOverflowExceptionCompletableFuture<WriteAck> send(Message message, SendSettings settings) throws QueueOverflowException
message - message data to writesettings - send settingsCompletableFuture with WriteAck for write acknowledgementQueueOverflowExceptionCompletableFuture<Void> shutdown()
Copyright © 2025. All rights reserved.