Skip to content

Commit

Permalink
[Java] Improve List Subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf committed Jul 11, 2024
1 parent 7984817 commit e68b8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jetstream/list-subjects/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void main(String[] args) {
js.publish("star.1", "star1-2".getBytes());
js.publish("star.2", "star2".getBytes());

// Get all subjects, but get the subjects as a map
// Get all subjects, but get the subjects as a map, via getSubjectMap
si = jsm.getStreamInfo("subjects", StreamInfoOptions.allSubjects());
state = si.getStreamState();
System.out.println("Wildcard subjects show the actual subject, not the template.");
Expand Down

1 comment on commit e68b8f2

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for nats-by-example ready!

✅ Preview
https://nats-by-example-qtrvdzbwx-connecteverything.vercel.app

Built with commit e68b8f2.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.