C# 클래스 pegasus.eventbus.amqp.QueueListener

Watches a Queue for new messages on a background thread, calling the EnvelopeHandler when new messages arrive.
파일 보기 프로젝트 열기: Berico-Technologies/Event-Bus 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
LOG log4net.ILog

공개 메소드들

메소드 설명
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.

메소드 상세

QueueListener() 공개 메소드

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 ///
리턴 System

StartListening() 공개 메소드

Begin listening for messages on the Queue.
public StartListening ( ) : void
리턴 void

StopListening() 공개 메소드

stop listening on the queue, thereby stopping the background thread.
public StopListening ( ) : void
리턴 void

프로퍼티 상세

LOG 보호되어 있는 정적으로 프로퍼티

protected static ILog,log4net LOG
리턴 log4net.ILog