@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); }
@Override public CompletableFuture<Void> sendAsync(IMessage message) { return this.createSenderAsync().thenComposeAsync((v) -> { return this.sender.sendAsync(message); }, MessagingFactory.INTERNAL_THREAD_POOL); }
@Override public CompletableFuture<Long> scheduleMessageAsync(IMessage message, Instant scheduledEnqueueTimeUtc, TransactionContext transaction) { return this.createSenderAsync().thenComposeAsync((v) -> { return this.sender.scheduleMessageAsync(message, scheduledEnqueueTimeUtc, transaction); }, MessagingFactory.INTERNAL_THREAD_POOL); }
@Override public CompletableFuture<Void> sendAsync(IMessage message, TransactionContext transaction) { return this.createSenderAsync().thenComposeAsync((v) -> { return this.sender.sendAsync(message, transaction); }); }
@Override public CompletableFuture<Void> cancelScheduledMessageAsync(long sequenceNumber) { return this.createSenderAsync().thenComposeAsync((v) -> { return this.sender.cancelScheduledMessageAsync(sequenceNumber); }, MessagingFactory.INTERNAL_THREAD_POOL); }