IMessageSender.cancelScheduledMessage(long sequenceNumber) 方法

定义

Cancels the enqueuing of an already sent scheduled message, if it was not already enqueued. This method blocks until the message is sent to the entity. Calling this method is equivalent to calling . For better performance, use async methods.

public void cancelScheduledMessage(long sequenceNumber)

参数

sequenceNumber
long

sequence number of the scheduled message

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if scheduled message couldn't be cancelled

适用于