Esempio n. 1
0
 public New(
     GroupName groupName,
     ConsumerName consumerName,
     Count count,
     Mode mode,
     params Key[] streams)
     : this(groupName, consumerName, count, mode, streams as IReadOnlyList <Key>)
 {
 }
Esempio n. 2
0
 public BLOCK(
     GroupName groupName,
     ConsumerName consumerName,
     Count count,
     MillisecondsTimeout blockTimeout,
     Mode mode,
     params Key[] streams)
     : this(groupName, consumerName, count, blockTimeout, mode, streams as IReadOnlyList <Key>)
 {
 }
Esempio n. 3
0
 public New(
     GroupName groupName,
     ConsumerName consumerName,
     Count count,
     Mode mode,
     IReadOnlyList <Key> streams)
 {
     this.groupName    = groupName;
     this.consumerName = consumerName;
     this.count        = count;
     this.mode         = mode;
     this.streams      = streams;
 }
Esempio n. 4
0
 public BLOCK(
     GroupName groupName,
     ConsumerName consumerName,
     Count count,
     MillisecondsTimeout blockTimeout,
     Mode mode,
     IReadOnlyList <Key> streams)
 {
     ValidateMode(mode);
     this.groupName    = groupName;
     this.consumerName = consumerName;
     this.count        = count ?? throw new ArgumentNullException(nameof(count));
     this.blockTimeout = blockTimeout;
     this.streams      = streams ?? throw new ArgumentNullException(nameof(streams));
     this.mode         = mode;
 }
Esempio n. 5
0
                public ByConsumer(
                    Key key,
                    GroupName groupName,
                    Interval interval,
                    long count,
                    ConsumerName consumerName)
                {
                    if (count < 1)
                    {
                        throw new ArgumentOutOfRangeException(nameof(count), count, "Must be positive");
                    }

                    this.key          = key ?? throw new ArgumentNullException(nameof(key));
                    this.groupName    = groupName;
                    this.interval     = interval ?? throw new ArgumentNullException(nameof(interval));
                    this.count        = count;
                    this.consumerName = consumerName;
                }
Esempio n. 6
0
        public XCLAIM(
            Key key,
            GroupName groupName,
            ConsumerName consumerName,
            Milliseconds minimumIdleTime,
            IReadOnlyList <Id> ids)
        {
            if (ids == null)
            {
                throw new ArgumentNullException(nameof(ids));
            }
            if (ids.Count < 1)
            {
                throw new ArgumentException("Must contain items", nameof(ids));
            }

            this.key             = key ?? throw new ArgumentNullException(nameof(key));
            this.groupName       = groupName;
            this.consumerName    = consumerName;
            this.minimumIdleTime = minimumIdleTime;
            this.ids             = ids;
        }
Esempio n. 7
0
 public DELCONSUMER(Key key, GroupName groupName, ConsumerName consumerName)
 {
     this.key          = key ?? throw new ArgumentNullException(nameof(key));
     this.groupName    = groupName;
     this.consumerName = consumerName;
 }