IMessageSender.cancelScheduledMessageAsync(long sequenceNumber) Method

定义

Cancels the enqueuing of an already sent scheduled message, if it was not already enqueued. This is an asynchronous method returning a CompletableFuture which completes when the message is cancelled.

public CompletableFuture<Void> cancelScheduledMessageAsync(long sequenceNumber)
参数
sequenceNumber
long

sequence number of the scheduled message

返回
CompletableFuture<Void>

a CompletableFuture representing the pending cancellation

适用于