Exemple #1
0
 ///<summary>
 /// Set max length of Messages on the Queue
 ///</summary>
 public static IQueue MaxLength(this IQueue queue, int length)
 => queue.AddTag("x-max-length", length);
Exemple #2
0
 ///<summary>
 /// If send to the DeadLetter Exchange, use this routing-key instead of the original.
 ///</summary>
 public static IQueue DeadLetterRoutingKey(this IQueue queue, string routingKey)
 => queue.AddTag("x-dead-letter-routing-key", routingKey);
Exemple #3
0
 ///<summary>
 /// Set a time when the Queue will expire if no action is taken on the queue
 ///</summary>
 public static IQueue QueueExpiry(this IQueue queue, int expiry)
 => queue.AddTag("x-expires", expiry);
Exemple #4
0
 ///<summary>
 /// Republish Messages to this Exchange if the are either expired, or not requeued on BasicReject/BasicNack.
 ///</summary>
 public static IQueue DeadLetterExchange(this IQueue queue, string deadLetterExchange)
 => queue.AddTag("x-dead-letter-exchange", deadLetterExchange);
Exemple #5
0
 ///<summary>
 /// only takes effect if MaxLength/MaxLengthBytes is set and is overflown
 ///</summary>
 public static IQueue OverflowReject(this IQueue queue)
 => queue.AddTag("x-overflow", "reject-publish");
Exemple #6
0
 ///<summary>
 /// Define all incoming messages to this queue with a Time to live (Message expiry)
 ///</summary>
 public static IQueue WithTTL(this IQueue queue, uint ttl)
 => queue.AddTag("x-message-ttl", ttl);
Exemple #7
0
 ///<summary>
 /// Define this Queue as Lazy. Writes all messages automatically to Disk.
 ///</summary>
 public static IQueue AsLazy(this IQueue queue)
 => queue.AddTag("x-queue-mode", "lazy");
Exemple #8
0
 ///<summary>
 /// Set max bytes on this Queue.
 ///</summary>
 public static IQueue MaxLengthBytes(this IQueue queue, int lengthBytes)
 => queue.AddTag("x-max-length-bytes", lengthBytes);