C# 클래스 Burrow.Subscription

A wrapper hold reference to RabbitMQ.Client IModel object.

From here you can ack/nack a message or cancel the consumer

파일 보기 프로젝트 열기: vanthoainguyen/Burrow.NET

공개 메소드들

메소드 설명
Ack ( IEnumerable deliveryTags ) : void

Ack all messages provided in the list

Ack ( ulong deliveryTag ) : void

Ack a message by its delivery tag

AckAllOutstandingMessages ( ) : void

Beware of using this method. It acks all unacknowledged messages

AckAllUpTo ( ulong deliveryTag ) : void

Ack all messages that have delivery tag less than or equal provided delivery tag

Cancel ( ) : void

Cancel subscription

Nack ( IEnumerable deliveryTags, bool requeue ) : void

Nack all messages privided by delivery tags in the list

Nack ( ulong deliveryTag, bool requeue ) : void

Nack a messages by it's delivery tag

NackAllOutstandingMessages ( bool requeue ) : void

Beware of using this method. It nacks all unacknowledged messages

NackAllUpTo ( ulong deliveryTag, bool requeue ) : void

Nack all messages that have delivery tags less than or equal provided delivery tag

SetChannel ( IModel channel ) : void

Set the IModel (aka channel)

보호된 메소드들

메소드 설명
Subscription ( ) : System
Subscription ( IModel channel ) : System

비공개 메소드들

메소드 설명
CanAckNackAll ( List outstandingList, List list, ulong maxTag ) : bool
TryAck ( IModel channel, ulong deliveryTag, bool multiple, IRabbitWatcher watcher = null ) : void
TryAckOrNack ( string consumerTag, bool ack, IModel channel, ulong deliveryTag, bool multiple, bool requeue, IRabbitWatcher watcher = null ) : void
TryCancel ( Action action, IModel channel, IRabbitWatcher watcher ) : void
TryNack ( IModel channel, ulong deliveryTag, bool multiple, bool requeue, IRabbitWatcher watcher = null ) : void

메소드 상세

Ack() 공개 메소드

Ack all messages provided in the list
public Ack ( IEnumerable deliveryTags ) : void
deliveryTags IEnumerable
리턴 void

Ack() 공개 메소드

Ack a message by its delivery tag
public Ack ( ulong deliveryTag ) : void
deliveryTag ulong
리턴 void

AckAllOutstandingMessages() 공개 메소드

Beware of using this method. It acks all unacknowledged messages
public AckAllOutstandingMessages ( ) : void
리턴 void

AckAllUpTo() 공개 메소드

Ack all messages that have delivery tag less than or equal provided delivery tag
public AckAllUpTo ( ulong deliveryTag ) : void
deliveryTag ulong
리턴 void

Cancel() 공개 메소드

Cancel subscription
public Cancel ( ) : void
리턴 void

Nack() 공개 메소드

Nack all messages privided by delivery tags in the list
public Nack ( IEnumerable deliveryTags, bool requeue ) : void
deliveryTags IEnumerable
requeue bool
리턴 void

Nack() 공개 메소드

Nack a messages by it's delivery tag
public Nack ( ulong deliveryTag, bool requeue ) : void
deliveryTag ulong
requeue bool
리턴 void

NackAllOutstandingMessages() 공개 메소드

Beware of using this method. It nacks all unacknowledged messages
public NackAllOutstandingMessages ( bool requeue ) : void
requeue bool
리턴 void

NackAllUpTo() 공개 메소드

Nack all messages that have delivery tags less than or equal provided delivery tag
public NackAllUpTo ( ulong deliveryTag, bool requeue ) : void
deliveryTag ulong
requeue bool
리턴 void

SetChannel() 공개 메소드

Set the IModel (aka channel)
public SetChannel ( IModel channel ) : void
channel IModel
리턴 void

Subscription() 보호된 메소드

protected Subscription ( ) : System
리턴 System

Subscription() 보호된 메소드

protected Subscription ( IModel channel ) : System
channel IModel
리턴 System