Skip to content

Commit

Permalink
Added #pendingListIdleMoreThan:limit: to RsStreamConsumerGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
mumez committed Sep 17, 2024
1 parent 7c6f1d7 commit 4a7f389
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
consumers
consumersInfo
^ self endpoint xInfoConsumers: self streamName group: self name
| consumersInfo |
consumersInfo := self endpoint xInfoConsumers: self streamName group: self name.
^ consumersInfo inject: Dictionary new into: [ :sum :each | sum at: each name put: each; yourself ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing-pending-list
pendingListIdleMoreThan: milliseconds limit: count
^ self endpoint xPending: self streamName group: self name start: RsStreamMessageId min end: RsStreamMessageId max count: count minIdleMilliseconds: milliseconds
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
reading
pendingsAfter: latestMessageId on: consumerName
^ self wrapAsAcceptableEntries: ( self endpoint
^ self wrapAsAcceptableEntries: (self endpoint
xGroupRead: self streamName
id: latestMessageId
group: self name
Expand Down

0 comments on commit 4a7f389

Please sign in to comment.