Skip to content

Pulsar Reader (imperative) Boot properties support #327

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

Merged
merged 3 commits into from
Feb 7, 2023

Conversation

sobychacko
Copy link
Collaborator

No description provided.

@sobychacko sobychacko requested a review from onobc February 7, 2023 00:59
private String subscriptionRolePrefix;

/**
* If enabled, a consumer reads messages from a compacted topic rather than a full
Copy link
Collaborator

Choose a reason for hiding this comment

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

For boolean config props so far we have used the form "Whether to " such as

* Whether to read messages from the compacted topic rather than the full message
* backlog.

public static class Reader {

/**
* Topic name.
Copy link
Collaborator

Choose a reason for hiding this comment

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

[NIT] there can be multiples

@@ -511,7 +511,7 @@ class ReaderPropertiesTests {
void readerProperties() {
Map<String, String> props = new HashMap<>();

props.put("spring.pulsar.reader.topic-names", "my-topic");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, sorry @sobychacko - I should have clarified. I meant that we typically use the relaxed named binding on the "left hand side" as that is typically what peepz will use in yml so it theoretically helps catch that.

Copy link
Collaborator

@onobc onobc left a comment

Choose a reason for hiding this comment

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

LGTM @sobychacko !

@onobc onobc merged commit 062e79e into spring-projects:main Feb 7, 2023
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.

2 participants