public New( GroupName groupName, ConsumerName consumerName, Count count, Mode mode, params Key[] streams) : this(groupName, consumerName, count, mode, streams as IReadOnlyList <Key>) { }
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>) { }
public XACK(Key key, GroupName groupName, IReadOnlyList <Id> ids) { this.key = key ?? throw new ArgumentNullException(nameof(key)); this.groupName = groupName; this.ids = ids ?? throw new ArgumentNullException(nameof(ids)); if (ids.Count < 1) { throw new ArgumentException("Must contain elements", nameof(ids)); } }
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; }
public CREATE(Key key, GroupName groupName, Offset offset, Mode mode) { if (mode != Mode.NotCreateStream && mode != Mode.CreateStreamIfNotExists) { throw new ArgumentException( $"Must be either NotCreateStream or CreateStreamIfNotExists, but {mode} found", nameof(mode) ); } this.key = key ?? throw new ArgumentNullException(nameof(key)); this.groupName = groupName; this.offset = offset; this.mode = mode; }
public Detailed( Key key, GroupName groupName, Interval interval, long count) { 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; }
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; }
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; }
public SETID(Key key, GroupName groupName, Offset offset) { this.key = key; this.groupName = groupName; this.offset = offset; }
public XPENDING(Key key, GroupName groupName) { this.key = key; this.groupName = groupName; }
public DELCONSUMER(Key key, GroupName groupName, ConsumerName consumerName) { this.key = key ?? throw new ArgumentNullException(nameof(key)); this.groupName = groupName; this.consumerName = consumerName; }
public XACK(Key key, GroupName groupName, params Id[] ids) : this(key, groupName, ids as IReadOnlyList <Id>) { }
public CONSUMERS(Key key, GroupName groupName) { this.key = key ?? throw new ArgumentNullException(nameof(key)); this.groupName = groupName; }
public DESTROY(Key key, GroupName groupName) { this.key = key; this.groupName = groupName; }