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
返回
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
返回
a CompletableFuture representing the pending send