Skip to content
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

Java: new xautoclaim #408

Closed
wants to merge 17 commits into from
Closed

Java: new xautoclaim #408

wants to merge 17 commits into from

Conversation

cyip10
Copy link

@cyip10 cyip10 commented Jul 4, 2024

Issue #, if available:

Description of changes:
issues with the PR build

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment on lines 2766 to 2808
"COUNT",
Long.toString(count),
"JUSTID"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two should be constants stored somewhere. I think we already have them, because other stream commands have same keywords

* @param minIdleTime The minimum idle time for the message to be claimed.
* @param start Filters the claimed entries to those that have an ID equal or greater than the
* specified value.
* @return An array containing the following elements: - A stream ID to be used as the start

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why dashes in the middle of the strings? Do you want to use a list?
Try html ul and li tags for that - see other docs for example.

*
* @see <a href ="https://valkey.io/commands/xautoclaim">valkey.io</a> for details.
* @param key The key of the stream.
* @param group The consumer group name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param group The consumer group name
* @param group The consumer group name.

*
* @see <a href ="https://valkey.io/commands/xautoclaim">valkey.io</a> for details.
* @param key The key of the stream.
* @param group The consumer group name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param group The consumer group name
* @param group The consumer group name.

*
* @see <a href ="https://valkey.io/commands/xautoclaim">valkey.io</a> for details.
* @param key The key of the stream.
* @param group The consumer group name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param group The consumer group name
* @param group The consumer group name.

*
* @see <a href ="https://valkey.io/commands/xautoclaim">valkey.io</a> for details.
* @param key The key of the stream.
* @param group The consumer group name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param group The consumer group name
* @param group The consumer group name.

*
* @see <a href ="https://valkey.io/commands/xautoclaim">valkey.io</a> for details.
* @param key The key of the stream.
* @param group The consumer group name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param group The consumer group name
* @param group The consumer group name.

*
* @see <a href ="https://valkey.io/commands/xautoclaim">valkey.io</a> for details.
* @param key The key of the stream.
* @param group The consumer group name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param group The consumer group name
* @param group The consumer group name.

*
* @see <a href ="https://valkey.io/commands/xautoclaim">valkey.io</a> for details.
* @param key The key of the stream.
* @param group The consumer group name

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @param group The consumer group name
* @param group The consumer group name.

* longer exist in the stream. These IDs are deleted from the Pending Entries List.
*/
public <ArgType> T xautoclaim(
@NonNull String key,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to use ArgType instead of String everywhere in transaction

Suggested change
@NonNull String key,
@NonNull ArgType key,

@cyip10 cyip10 force-pushed the java/dev_xautoclaimNew branch from dea790b to 26db1f4 Compare July 4, 2024 23:54
@jamesx-improving jamesx-improving force-pushed the java/dev_xautoclaimNew branch from 388b572 to 4a53b16 Compare July 5, 2024 23:24
@jamesx-improving jamesx-improving force-pushed the java/dev_xautoclaimNew branch from f30d190 to 3649c42 Compare July 6, 2024 00:14
@Yury-Fridlyand Yury-Fridlyand deleted the java/dev_xautoclaimNew branch July 8, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants