C# Class paramore.brighter.commandprocessor.messaginggateway.restms.RestMsMessageConsumer

Class RestMsMessageConsumer.
Inheritance: RestMSMessageGateway, IAmAMessageConsumer
Afficher le fichier Open project: iancooper/Paramore Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

Acknowledge() public méthode

Acknowledges the specified message.
public Acknowledge ( Message message ) : void
message Message The message.
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

NoOfOutstandingMessages() public méthode

Noes the of outstanding messages.
public NoOfOutstandingMessages ( int timeoutInMilliseconds = -1 ) : int
timeoutInMilliseconds int The timeout in milliseconds.
Résultat int

Purge() public méthode

Purges the specified queue name.
public Purge ( ) : void
Résultat void

Receive() public méthode

public Receive ( int timeoutInMilliseconds = -1 ) : Message
timeoutInMilliseconds int The timeout in milliseconds.
Résultat Message

Reject() public méthode

Rejects the specified message.
public Reject ( Message message, bool requeue ) : void
message Message The message.
requeue bool if set to true [requeue].
Résultat void

Requeue() public méthode

public Requeue ( Message message ) : void
message Message
Résultat void

RestMsMessageConsumer() public méthode

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.
Résultat System