-
Notifications
You must be signed in to change notification settings - Fork 20
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
refactor: expose configDef() for all cache config sets #602
Conversation
b1576a8
to
b6d58ca
Compare
This is needed for documentation purposes, while also improving the cache config builder.
b6d58ca
to
881af51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd start review here: this is the main change affecting the cache config hierarchy.
Then continue with MemorySegmentIndexes/MemorySegmentManifest configs, and then ChunkCacheConfig and its children
public CacheConfig( | ||
final ConfigDef configDef, | ||
final Object defaultSize, | ||
final long defaultRetentionMs | ||
final Map<String, ?> props | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disentangle configDef from CacheConfig. Instead the DefBuilder
defines the config definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just adjusting new instantiation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, but i don't understand some of the changes like why in CacheConfig.java
why move the configDef.define
defs into the DefBuilder
class? But maybe that's necessary for the documentation feature, so in the end it's just my ramblings 😃
This is needed for documentation purposes (#601), while also improving the cache config builder.