-
-
Notifications
You must be signed in to change notification settings - Fork 16
Add documentation #643
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
base: main
Are you sure you want to change the base?
Add documentation #643
Conversation
danicheg
left a comment
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.
Nice work!
|
|
||
| /** | ||
| * Set how long an idle resource is allowed to remain in the pool before it becomes eligible for | ||
| * eviction. If not configured, the builder defaults to 30 seconds. |
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.
Concrete references to default values could easily be forgotten to be updated when the actual values change. Wouldn't it be better if we provided a link to the values in the code?
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.
Oh, you mean something like [[DefaultSetting.idleTimeAllowedInPool 30 seconds]] – correct?
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.
Yeah, kind of
|
|
||
| /** | ||
| * Set the interval between eviction runs of the pool reaper. If not configured, the builder | ||
| * defaults to 5 seconds. |
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.
+
|
|
||
| /** | ||
| * Set the maximum number of idle resources allowed per key. If not configured, the builder | ||
| * defaults to 100. |
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.
+
|
|
||
| /** | ||
| * Set the maximum number of idle resources allowed across all keys. If not configured, the | ||
| * builder defaults to 100. |
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.
+
|
|
||
| /** | ||
| * Set the maximum total number of concurrent resources permitted by the pool. If not | ||
| * configured, the builder defaults to 100. |
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.
+
|
|
||
| /** | ||
| * Set how long an idle resource is allowed to remain in the pool before it becomes eligible for | ||
| * eviction. If not configured, the builder defaults to 30 seconds. |
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.
+
|
|
||
| /** | ||
| * Set the interval between eviction runs of the pool reaper. If not configured, the builder | ||
| * defaults to 5 seconds. |
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.
+
|
|
||
| /** | ||
| * Set the maximum number of idle resources allowed across the pool. If not configured, the | ||
| * builder defaults to 100. |
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.
+
|
|
||
| /** | ||
| * Set the maximum total number of concurrent resources permitted by the pool. If not | ||
| * configured, the builder defaults to 100. |
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 recently came across this library and found it really helpful, but it currently has very little documentation. So it is quite difficult to get started with. I took the liberty of writing the missing docs – both Scaladoc in the code and Laika pages for the microsite.
For transparency: I did use AI to help draft or refine some of the text, but I carefully reviewed every generated piece. If any factual inaccuracies slipped in, they are far more likely due to my own misunderstanding than to AI hallucination.
All the code examples are handwritten 😅