C# Class pegasus.eventbus.amqp.QueueListener

Watches a Queue for new messages on a background thread, calling the EnvelopeHandler when new messages arrive.
Afficher le fichier Open project: Berico-Technologies/Event-Bus Class Usage Examples

Protected Properties

Свойство Type Description
LOG log4net.ILog

Méthodes publiques

Méthode Description
QueueListener ( IAmqpMessageBus messageBus, string queueName, bool queueIsDurable, IEnumerable routes, IEnvelopeHandler envelopeHandler ) : System

Start up an new Queue Listener bound on the supplied queue name, with the provided EnvelopeHander dealing with new messages.

StartListening ( ) : void

Begin listening for messages on the Queue.

StopListening ( ) : void

stop listening on the queue, thereby stopping the background thread.

Method Details

QueueListener() public méthode

Start up an new Queue Listener bound on the supplied queue name, with the provided EnvelopeHander dealing with new messages.
public QueueListener ( IAmqpMessageBus messageBus, string queueName, bool queueIsDurable, IEnumerable routes, IEnvelopeHandler envelopeHandler ) : System
messageBus IAmqpMessageBus /// Message bus. ///
queueName string /// The name of the queue to watch ///
queueIsDurable bool /// Queue is durable. ///
routes IEnumerable /// Routes. ///
envelopeHandler IEnvelopeHandler /// the handler that deals with incoming envelopes ///
Résultat System

StartListening() public méthode

Begin listening for messages on the Queue.
public StartListening ( ) : void
Résultat void

StopListening() public méthode

stop listening on the queue, thereby stopping the background thread.
public StopListening ( ) : void
Résultat void

Property Details

LOG protected_oe static_oe property

protected static ILog,log4net LOG
Résultat log4net.ILog