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

Class RestMsMessageConsumer.
Inheritance: RestMSMessageGateway, IAmAMessageConsumer
Show file Open project: iancooper/Paramore Class Usage Examples

Public Methods

Method 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

Method 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 method

Acknowledges the specified message.
public Acknowledge ( Message message ) : void
message Message The message.
return void

Dispose() public method

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

NoOfOutstandingMessages() public method

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

Purge() public method

Purges the specified queue name.
public Purge ( ) : void
return void

Receive() public method

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

Reject() public method

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

Requeue() public method

public Requeue ( Message message ) : void
message Message
return void

RestMsMessageConsumer() public method

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.
return System