Свойство | Type | Description | |
---|---|---|---|
_status | ConsumerStatus | ||
_watcher | IRabbitWatcher |
Méthode | Description | |
---|---|---|
BurrowConsumer ( IModel channel, IMessageHandler messageHandler, IRabbitWatcher watcher, bool autoAck, int batchSize ) : System |
Initialize an object of BurrowConsumer
|
|
Dispose ( ) : void |
Méthode | Description | |
---|---|---|
BurrowConsumer ( IModel channel, IMessageHandler messageHandler, IRabbitWatcher watcher, bool autoAck, int batchSize, bool startThread ) : System |
Initialize an object of BurrowConsumer
|
|
CloseQueue ( ) : void | ||
Dequeue ( ) : RabbitMQ.Client.Events.BasicDeliverEventArgs | ||
DoAck ( RabbitMQ.Client.Events.BasicDeliverEventArgs basicDeliverEventArgs, IBasicConsumer subscriptionInfo ) : void | ||
StartConsumerThread ( string threadName ) : void | ||
WhenChannelShutdown ( object sender, RabbitMQ.Client.ShutdownEventArgs reason ) : void |
Méthode | Description | |
---|---|---|
HandleMessageDeliveryInSameThread ( RabbitMQ.Client.Events.BasicDeliverEventArgs basicDeliverEventArgs ) : void | ||
HandleMessageDeliveryInSeperatedThread ( RabbitMQ.Client.Events.BasicDeliverEventArgs basicDeliverEventArgs ) : void | ||
MessageHandlerHandlingComplete ( RabbitMQ.Client.Events.BasicDeliverEventArgs eventArgs ) : void | ||
MessageInProgressCount ( ) : int | ||
MessageWasNotHandled ( RabbitMQ.Client.Events.BasicDeliverEventArgs eventArgs ) : void | ||
WaitAndHandleMessageDelivery ( Action |
public BurrowConsumer ( IModel channel, IMessageHandler messageHandler, IRabbitWatcher watcher, bool autoAck, int batchSize ) : System | ||
channel | IModel | RabbitMQ.Client channel |
messageHandler | IMessageHandler | An instance of message handler to handle the message from queue |
watcher | IRabbitWatcher | |
autoAck | bool | If set to true, the msg will be acked after processed |
batchSize | int | |
Résultat | System |
protected BurrowConsumer ( IModel channel, IMessageHandler messageHandler, IRabbitWatcher watcher, bool autoAck, int batchSize, bool startThread ) : System | ||
channel | IModel | RabbitMQ.Client channel |
messageHandler | IMessageHandler | An instance of message handler to handle the message from queue |
watcher | IRabbitWatcher | |
autoAck | bool | If set to true, the msg will be acked after processed |
batchSize | int | |
startThread | bool | Whether should start the consuming thread straight away |
Résultat | System |
protected Dequeue ( ) : RabbitMQ.Client.Events.BasicDeliverEventArgs | ||
Résultat | RabbitMQ.Client.Events.BasicDeliverEventArgs |
protected DoAck ( RabbitMQ.Client.Events.BasicDeliverEventArgs basicDeliverEventArgs, IBasicConsumer subscriptionInfo ) : void | ||
basicDeliverEventArgs | RabbitMQ.Client.Events.BasicDeliverEventArgs | |
subscriptionInfo | IBasicConsumer | |
Résultat | void |
protected StartConsumerThread ( string threadName ) : void | ||
threadName | string | |
Résultat | void |
protected WhenChannelShutdown ( object sender, RabbitMQ.Client.ShutdownEventArgs reason ) : void | ||
sender | object | |
reason | RabbitMQ.Client.ShutdownEventArgs | |
Résultat | void |