C# Класс paramore.brighter.commandprocessor.messaginggateway.restms.RestMsMessageConsumer

Class RestMsMessageConsumer.
Наследование: RestMSMessageGateway, IAmAMessageConsumer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Acknowledge ( Message message ) : void

Acknowledges the specified message.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

NoOfOutstandingMessages ( int timeoutInMilliseconds = -1 ) : int

Noes the of outstanding messages.

Purge ( ) : void

Purges the specified queue name.

Receive ( int timeoutInMilliseconds = -1 ) : Message
Reject ( Message message, bool requeue ) : void

Rejects the specified message.

Requeue ( Message message ) : void
RestMsMessageConsumer ( RestMSMessagingGatewayConfiguration configuration, string queueName, string routingKey ) : System

Initializes a new instance of the RestMsMessageConsumer class.

Приватные методы

Метод Описание
DeleteMessage ( paramore.brighter.commandprocessor.messaginggateway.restms.Model.RestMSPipe pipe, Message message ) : void
GetMessage ( paramore.brighter.commandprocessor.messaginggateway.restms.Model.RestMSMessageLink messageUri ) : Message
ReadMessage ( ) : Message
SendDeleteMessage ( paramore.brighter.commandprocessor.messaginggateway.restms.Model.RestMSMessageLink matchingMessage ) : void

Описание методов

Acknowledge() публичный Метод

Acknowledges the specified message.
public Acknowledge ( Message message ) : void
message Message The message.
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

NoOfOutstandingMessages() публичный Метод

Noes the of outstanding messages.
public NoOfOutstandingMessages ( int timeoutInMilliseconds = -1 ) : int
timeoutInMilliseconds int The timeout in milliseconds.
Результат int

Purge() публичный Метод

Purges the specified queue name.
public Purge ( ) : void
Результат void

Receive() публичный Метод

public Receive ( int timeoutInMilliseconds = -1 ) : Message
timeoutInMilliseconds int The timeout in milliseconds.
Результат Message

Reject() публичный Метод

Rejects the specified message.
public Reject ( Message message, bool requeue ) : void
message Message The message.
requeue bool if set to true [requeue].
Результат void

Requeue() публичный Метод

public Requeue ( Message message ) : void
message Message
Результат void

RestMsMessageConsumer() публичный Метод

Initializes a new instance of the RestMsMessageConsumer class.
public RestMsMessageConsumer ( RestMSMessagingGatewayConfiguration configuration, string queueName, string routingKey ) : System
configuration RestMSMessagingGatewayConfiguration The configuration of the RestMS broker
queueName string Name of the queue.
routingKey string The routing key.
Результат System