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

Refinements in configs #133

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Refinements in configs #133

merged 2 commits into from
Oct 17, 2024

Conversation

gavv
Copy link
Member

@gavv gavv commented Oct 16, 2024

  1. Extract validators into separate files.

    We're going to make all RocXxxConfig.java files auto-generated. However, the validation part is hard to generate: there are no unified rule which fields should be non-null, non-negative, etc.

  2. Fix Use Duration class instead of long for time values in configs #111

@gavv gavv requested a review from ortex October 16, 2024 19:59
/**
* A <code>RocContextValidator</code> adds validation to RocContextConfig builder.
*/
class RocContextValidator extends RocContextConfig.Builder {
Copy link
Member

Choose a reason for hiding this comment

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

RocContextValidator -> RocContextConfigValidator

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@ortex ortex merged commit 3a2cfb7 into roc-streaming:main Oct 17, 2024
9 checks passed
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.

Use Duration class instead of long for time values in configs
2 participants