Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants