C# Class Burrow.BurrowConsumer

Inheritance: RabbitMQ.Client.QueueingBasicConsumer, IDisposable
Afficher le fichier Open project: vanthoainguyen/Burrow.NET

Protected Properties

Свойство Type Description
_status ConsumerStatus
_watcher IRabbitWatcher

Méthodes publiques

Méthode Description
BurrowConsumer ( IModel channel, IMessageHandler messageHandler, IRabbitWatcher watcher, bool autoAck, int batchSize ) : System

Initialize an object of BurrowConsumer

Dispose ( ) : void

Méthodes protégées

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

Private Methods

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 handler ) : void

Method Details

BurrowConsumer() public méthode

Initialize an object of BurrowConsumer
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

BurrowConsumer() protected méthode

Initialize an object of BurrowConsumer
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

CloseQueue() protected méthode

protected CloseQueue ( ) : void
Résultat void

Dequeue() protected méthode

protected Dequeue ( ) : RabbitMQ.Client.Events.BasicDeliverEventArgs
Résultat RabbitMQ.Client.Events.BasicDeliverEventArgs

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DoAck() protected méthode

protected DoAck ( RabbitMQ.Client.Events.BasicDeliverEventArgs basicDeliverEventArgs, IBasicConsumer subscriptionInfo ) : void
basicDeliverEventArgs RabbitMQ.Client.Events.BasicDeliverEventArgs
subscriptionInfo IBasicConsumer
Résultat void

StartConsumerThread() protected méthode

protected StartConsumerThread ( string threadName ) : void
threadName string
Résultat void

WhenChannelShutdown() protected méthode

protected WhenChannelShutdown ( object sender, RabbitMQ.Client.ShutdownEventArgs reason ) : void
sender object
reason RabbitMQ.Client.ShutdownEventArgs
Résultat void

Property Details

_status protected_oe property

protected ConsumerStatus _status
Résultat ConsumerStatus

_watcher protected_oe property

protected IRabbitWatcher _watcher
Résultat IRabbitWatcher