C# 클래스 paramore.brighter.commandprocessor.messaginggateway.rmq.RmqMessageConsumer

Class RmqMessageConsumer. The RmqMessageConsumer is used on the server to receive messages from the broker. It abstracts away the details of inter-process communication tasks from the server. It handles connection establishment, request reception and dispatching, result sending, and error handling.
상속: MessageGateway, IAmAMessageConsumerSupportingDelay
파일 보기 프로젝트 열기: iancooper/Paramore

Private Properties

프로퍼티 타입 설명
CancelConsumer void
EnsureChannelBind void
EnsureConsumer void
SetConsumerArguments object>.Dictionary
SetQueueArguments object>.Dictionary

공개 메소드들

메소드 설명
Acknowledge ( Message message ) : void

Acknowledges the specified message.

Dispose ( ) : void

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

Purge ( ) : void

Purges the specified queue name.

Receive ( int timeoutInMilliseconds ) : Message

Receives the specified queue name.

Reject ( Message message, bool requeue ) : void

Rejects the specified message.

Requeue ( Message message ) : void
Requeue ( Message message, int delayMilliseconds ) : void
RmqMessageConsumer ( RmqMessagingGatewayConnection connection, string queueName, string routingKey, bool isDurable, ushort preFetchSize = 1, bool highAvailability = false ) : System

Initializes a new instance of the MessageGateway class.

보호된 메소드들

메소드 설명
CreateConsumer ( ) : void

비공개 메소드들

메소드 설명
CancelConsumer ( ) : void
EnsureChannelBind ( ) : void
EnsureConsumer ( ) : void
SetConsumerArguments ( ) : object>.Dictionary
SetQueueArguments ( ) : object>.Dictionary

메소드 상세

Acknowledge() 공개 메소드

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

CreateConsumer() 보호된 메소드

protected CreateConsumer ( ) : void
리턴 void

Dispose() 공개 메소드

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

Purge() 공개 메소드

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

Receive() 공개 메소드

Receives the specified queue name.
public Receive ( int timeoutInMilliseconds ) : 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

Requeue() 공개 메소드

public Requeue ( Message message, int delayMilliseconds ) : void
message Message
delayMilliseconds int
리턴 void

RmqMessageConsumer() 공개 메소드

Initializes a new instance of the MessageGateway class.
public RmqMessageConsumer ( RmqMessagingGatewayConnection connection, string queueName, string routingKey, bool isDurable, ushort preFetchSize = 1, bool highAvailability = false ) : System
connection paramore.brighter.commandprocessor.messaginggateway.rmq.MessagingGatewayConfiguration.RmqMessagingGatewayConnection
queueName string The queue name.
routingKey string The routing key.
isDurable bool Is the queue persisted to disk
preFetchSize ushort 0="Don't send me a new message until I?ve finished", 1= "Send me one message at a time", n = number to grab (take care with competing consumers)
highAvailability bool
리턴 System