-
Notifications
You must be signed in to change notification settings - Fork 182
(2.12) Prioritized Consumer Support #1433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| NatsJetStreamMetaData meta = msg.metaData(); | ||
| lastStreamSeq = meta.streamSequence(); | ||
| lastConsumerSeq++; | ||
| subTrackJsMessage(msg); // for subclasses so they don't have to acquire the lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trackJsMessage is called for every push or pull message. subTrackMessage added so if there is additional work to be done by a specific manager, they can do it within the lock. In this case, the pull manager needs to look for pin id
| throw new IOException("Pinned not allowed with " + label); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetch and next cannot be pinned.
| } | ||
|
|
||
| PullRequestOptions pro = PullRequestOptions.builder(fetchConsumeOptions.getMaxMessages()) | ||
| PinnablePullRequestOptions pro = new PinnablePullRequestOptions(pmm.currentPinId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not want to add pin id to the pull request that the user is allowed to manually make. So I made the PullRequestOptions extendable and made the PinnablePullRequestOptions to handled adding the pin.
I'm not loving this, but...
MauriceVanVeen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.