IMessageSender.sendAsync 方法
定义
重载
sendAsync(IMessage message) |
Sends a message to the Azure Service Bus entity this sender is connected to. This is an asynchronous method returning a CompletableFuture which completes when the message is sent to the entity.
|
sendAsync(IMessage message, TransactionContext transaction) |
Sends a message to the Azure Service Bus entity this sender is connected to. This is an asynchronous method returning a CompletableFuture which completes when the message is sent to the entity.
|
sendAsync(IMessage message)
Sends a message to the Azure Service Bus entity this sender is connected to. This is an asynchronous method returning a CompletableFuture which completes when the message is sent to the entity.
public CompletableFuture<Void> sendAsync(IMessage message)
参数
- message
- IMessage
message to be sent to the entity
返回
a CompletableFuture representing the pending send
sendAsync(IMessage message, TransactionContext transaction)
Sends a message to the Azure Service Bus entity this sender is connected to. This is an asynchronous method returning a CompletableFuture which completes when the message is sent to the entity.
public CompletableFuture<Void> sendAsync(IMessage message, TransactionContext transaction)
参数
- message
- IMessage
message to be sent to the entity
返回
a CompletableFuture representing the pending send