Skip to content

Conversation

@satorg
Copy link

@satorg satorg commented Jan 21, 2026

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 😅

Copy link
Member

@danicheg danicheg left a 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.
Copy link
Member

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?

Copy link
Author

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?

Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

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

+

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.

2 participants