C# Class Burrow.Subscription

A wrapper hold reference to RabbitMQ.Client IModel object.

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

Afficher le fichier Open project: vanthoainguyen/Burrow.NET

Méthodes publiques

Méthode Description
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)

Méthodes protégées

Méthode Description
Subscription ( ) : System
Subscription ( IModel channel ) : System

Private Methods

Méthode Description
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

Method Details

Ack() public méthode

Ack all messages provided in the list
public Ack ( IEnumerable deliveryTags ) : void
deliveryTags IEnumerable
Résultat void

Ack() public méthode

Ack a message by its delivery tag
public Ack ( ulong deliveryTag ) : void
deliveryTag ulong
Résultat void

AckAllOutstandingMessages() public méthode

Beware of using this method. It acks all unacknowledged messages
public AckAllOutstandingMessages ( ) : void
Résultat void

AckAllUpTo() public méthode

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

Cancel() public méthode

Cancel subscription
public Cancel ( ) : void
Résultat void

Nack() public méthode

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

Nack() public méthode

Nack a messages by it's delivery tag
public Nack ( ulong deliveryTag, bool requeue ) : void
deliveryTag ulong
requeue bool
Résultat void

NackAllOutstandingMessages() public méthode

Beware of using this method. It nacks all unacknowledged messages
public NackAllOutstandingMessages ( bool requeue ) : void
requeue bool
Résultat void

NackAllUpTo() public méthode

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
Résultat void

SetChannel() public méthode

Set the IModel (aka channel)
public SetChannel ( IModel channel ) : void
channel IModel
Résultat void

Subscription() protected méthode

protected Subscription ( ) : System
Résultat System

Subscription() protected méthode

protected Subscription ( IModel channel ) : System
channel IModel
Résultat System