IMessageBrowser 接口

定义

Represents a message browser that can browse messages from Azure Service Bus.

public interface IMessageBrowser

方法

peek()

reads next the active message without changing the state of the receiver or the message source. The first call to peek() fetches the first active message for this receiver. Each subsequent call fetches the subsequent message in the entity.

peek(long fromSequenceNumber)

Reads next the active message without changing the state of the receiver or the message source.

peekAsync()

Asynchronously reads the active messages without changing the state of the receiver or the message source.

peekAsync(long fromSequenceNumber)

Asynchronously reads next the active message without changing the state of the receiver or the message source.

peekBatch(int messageCount)

Reads next batch of the active messages without changing the state of the receiver or the message source.

peekBatch(long fromSequenceNumber, int messageCount)

Reads next batch of the active messages without changing the state of the receiver or the message source.

peekBatchAsync(int messageCount)

Asynchronously reads the next batch of active messages without changing the state of the receiver or the message source.

peekBatchAsync(long fromSequenceNumber, int messageCount)

Asynchronously reads the next batch of active messages without changing the state of the receiver or the message source.

适用于