IMessageSender.sendBatchAsync 方法

定义

重载

sendBatchAsync(Collection<? extends IMessage> messages)

Sends a batch of messages to the Azure Service Bus entity this sender is connected to. This is an asynchronous method returning a CompletableFuture which completes when the batch is sent to the entity.

sendBatchAsync(Collection<? extends IMessage> messages, TransactionContext transaction)

Sends a batch of messages to the Azure Service Bus entity this sender is connected to. This is an asynchronous method returning a CompletableFuture which completes when the batch is sent to the entity.

sendBatchAsync(Collection<? extends IMessage> messages)

Sends a batch of messages to the Azure Service Bus entity this sender is connected to. This is an asynchronous method returning a CompletableFuture which completes when the batch is sent to the entity.

public CompletableFuture<Void> sendBatchAsync(Collection<? extends IMessage> messages)

参数

messages
Collection<? extends IMessage>

collection of messages to be sent to the entity

返回

CompletableFuture<Void>

a CompletableFuture representing the pending send

sendBatchAsync(Collection<? extends IMessage> messages, TransactionContext transaction)

Sends a batch of messages to the Azure Service Bus entity this sender is connected to. This is an asynchronous method returning a CompletableFuture which completes when the batch is sent to the entity.

public CompletableFuture<Void> sendBatchAsync(Collection<? extends IMessage> messages, TransactionContext transaction)

参数

messages
Collection<? extends IMessage>

collection of messages to be sent to the entity

transaction
TransactionContext

TransactionContext which this operation should enlist to.

返回

CompletableFuture<Void>

a CompletableFuture representing the pending send

适用于