TopicClient.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

返回

CompletableFuture<Void>

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

transaction
TransactionContext

TransactionContext which this operation should enlist to.

返回

CompletableFuture<Void>

a CompletableFuture representing the pending send

替代

适用于