Skip to content

Commit

Permalink
Changed RsStreamConsumer>>autoClaimIdling to use auto claim API with …
Browse files Browse the repository at this point in the history
…IDS only option
  • Loading branch information
mumez committed Sep 1, 2024
1 parent eb7fccb commit 28532dc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
claiming
autoClaimIdling
^ self autoClaimIdleMoreThan: self settings claimMinIdleMilliseconds
^ self autoClaimIdsIdleMoreThan: self settings claimMinIdleMilliseconds
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
claiming
autoClaimIdsFrom: start idleMoreThan: milliseconds
^ self autoClaimIdsFrom: start idleMoreThan: milliseconds atMost: self settings claimReadChunkSize
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
claiming
autoClaimIdsFrom: start idleMoreThan: milliseconds atMost: count
^ self group autoClaimIdsFrom: start idleMoreThan: milliseconds atMost: count on: self name
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
claiming
autoClaimIdsIdleMoreThan: milliseconds
^ self autoClaimIdsFrom: RsStreamMessageId zero idleMoreThan: milliseconds
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
claiming
autoClaimIdsIdling
^ self autoClaimIdsIdleMoreThan: self settings claimMinIdleMilliseconds
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
claiming
autoClaimIdsFrom: start idleMoreThan: milliseconds atMost: count on: consumerName
^ self endpoint xAutoClaim: self streamName group: self name consumer: consumerName minIdleTime: milliseconds start: start count: count idsOnly: true

0 comments on commit 28532dc

Please sign in to comment.