refactor: Add Lombok Builder annotation to TimelineService.Config#17807
Merged
danny0405 merged 1 commit intoapache:masterfrom Jan 9, 2026
Merged
Conversation
2e210f2 to
41f1420
Compare
Collaborator
danny0405
reviewed
Jan 9, 2026
| .asyncConflictDetectorInitialDelayMs(writeConfig.getAsyncConflictDetectorInitialDelayMs()) | ||
| .asyncConflictDetectorPeriodMs(writeConfig.getAsyncConflictDetectorPeriodMs()) | ||
| .earlyConflictDetectionMaxAllowableHeartbeatIntervalInMs( | ||
| .maxAllowableHeartbeatIntervalInMs( |
Contributor
There was a problem hiding this comment.
the prefix "earlyConflictDetection" is removed?
Member
Author
There was a problem hiding this comment.
earlyConflictDetectionMaxAllowableHeartbeatIntervalInMs > maxAllowableHeartbeatIntervalInMs.
public Builder earlyConflictDetectionMaxAllowableHeartbeatIntervalInMs(Long maxAllowableHeartbeatIntervalInMs) {
this.maxAllowableHeartbeatIntervalInMs = maxAllowableHeartbeatIntervalInMs;
return this;
}
Contributor
There was a problem hiding this comment.
should we rename the maxAllowableHeartbeatIntervalInMs too to make the API unchanged.
Member
Author
There was a problem hiding this comment.
The original code uses maxAllowableHeartbeatIntervalInMs almost everywhere. The only place where this config was renamed is in the builder interface. Which is only used in 2 locations:
I am in favour of keeping maxAllowableHeartbeatIntervalInMs so the entire code base is more consistent as majority is using maxAllowableHeartbeatIntervalInMs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the issue this Pull Request addresses
Adding Lombok Builder annotation to
TimelineService.Configto remove boilerplate code.Summary and Changelog
TimelineService.ConfigWriteConfigandTimelineService.ConfigImpact
None
Risk Level
None
Documentation Update
None
Contributor's checklist