Skip to content

[java] Add QUEUE_DEFAULT constant like other languages - #1557

Open
brandur wants to merge 1 commit into
masterfrom
brandur-queue-default-java
Open

brandur wants to merge 1 commit into
masterfrom
brandur-queue-default-java

Conversation

@brandur

@brandur brandur commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

I just happened to notice while looking at Java docs samples that while
all other languages have some sort of constant representing the default
queue, Java never got one for some reason, and so its code samples all
use a literal string like "default".

Language Public constant
Go river.QueueDefault
JavaScript / TypeScript QUEUE_DEFAULT from "riverqueue"
Ruby River::QUEUE_DEFAULT
Rust riverqueue::QUEUE_DEFAULT

Here, add Client.QUEUE_DEFAULT to fill the gap. Has no functional
effect, but makes cross-language packages a little more consistent, and
makes the code samples look a little nicer IMO.

I just happened to notice while looking at Java docs samples that while
all other languages have some sort of constant representing the default
queue, Java never got one for some reason, and so its code samples all
use a literal string like `"default"`.

| Language | Public constant |
|---|---|
| Go | `river.QueueDefault` |
| JavaScript / TypeScript | `QUEUE_DEFAULT` from `"riverqueue"` |
| Ruby | `River::QUEUE_DEFAULT` |
| Rust | `riverqueue::QUEUE_DEFAULT` |

Here, add `Client.QUEUE_DEFAULT` to fill the gap. Has no functional
effect, but makes cross-language packages a little more consistent, and
makes the code samples look a little nicer IMO.
@brandur

brandur commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T20:27:41.674163Z a8fa2ed Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: a8fa2ed09a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brandur
brandur requested a review from bgentry October 27, 2026 20:31
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.

1 participant