/// <summary>
 /// Sets the queue overflow behaviour. This determines what happens to messages when the maximum length of a
 /// queue is reached. Valid values are drop-head, reject-publish or reject-publish-dlx. The quorum queue type only supports drop-head.
 /// </summary>
 /// <returns></returns>
 public CreateQueueOptionsBuilder WithOverflowBehaviour(OverflowBehaviour overflowBehaviour)
 {
     if (_queueType == QueueType.Quorum && overflowBehaviour != OverflowBehaviour.DropHead)
     {
         throw new InvalidBuilderOptionsException("The quorum queue type only supports drop-head.");
     }
     _overflowBehaviour = overflowBehaviour;
     return(this);
 }
Ejemplo n.º 2
0
 public RecordAttribute()
 {
     mColumnMapping = FieldMapping.PrivateFields | FieldMapping.PublicFields;
     mOverflowBehaviour = OverflowBehaviour.ThrowError;
 }
Ejemplo n.º 3
0
 public RecordAttribute()
 {
     mColumnMapping     = FieldMapping.PrivateFields | FieldMapping.PublicFields;
     mOverflowBehaviour = OverflowBehaviour.ThrowError;
 }