@Override public CompletableFuture<Void> sendBatchAsync(Collection<? extends IMessage> messages) { return this.sender.sendBatchAsync(messages); }
@Override public CompletableFuture<Void> sendBatchAsync(Collection<? extends IMessage> messages, TransactionContext transaction) { return this.sender.sendBatchAsync(messages, transaction); }
@Override public CompletableFuture<Void> sendBatchAsync(Collection<? extends IMessage> messages, TransactionContext transaction) { return this.createSenderAsync().thenComposeAsync((v) -> { return this.sender.sendBatchAsync(messages, transaction); }, MessagingFactory.INTERNAL_THREAD_POOL); }