com.climate.claypoole/threadpool creates an instance of ScheduledThreadPoolExecutor
It uses an unbounded queue which leads a silent accrue leading to exhaustion of resources.
Also we don't get finer control over what should be done when pool and queue are exhausted.
Proposed solution,
- Use java.util.concurrent.ThreadPoolExecutor
- Provide API for,
** queue size
** Selecting different policies. ie AbortPolicy, CallerRunsPolicy
com.climate.claypoole/threadpool creates an instance of ScheduledThreadPoolExecutor
It uses an unbounded queue which leads a silent accrue leading to exhaustion of resources.
Also we don't get finer control over what should be done when pool and queue are exhausted.
Proposed solution,
** queue size
** Selecting different policies. ie AbortPolicy, CallerRunsPolicy