Package | Description |
---|---|
org.dromara.hutool.core.pool |
对象池封装实现
整体参考了: https://github.com/DanielYWoo/fast-object-pool/ https://github.com/apache/commons-pool |
org.dromara.hutool.core.pool.partition |
基于分区的对象池实现,参考:https://github.com/DanielYWoo/fast-object-pool
|
Class and Description |
---|
ObjectPool
对象池接口,提供:
ObjectPool.borrowObject() 对象借出。 |
Poolable
池化对象
|
PoolConfig
对象池配置,提供基本的配置项,包括:
最小池大小(初始大小)
最大池大小
最长等待时间
最长空闲时间
|
Class and Description |
---|
ObjectFactory
对象工厂接口,用于自定义对象创建、验证和销毁
来自:https://github.com/DanielYWoo/fast-object-pool/ |
ObjectPool
对象池接口,提供:
ObjectPool.borrowObject() 对象借出。 |
Poolable
池化对象
|
PoolConfig
对象池配置,提供基本的配置项,包括:
最小池大小(初始大小)
最大池大小
最长等待时间
最长空闲时间
|
SimplePoolable
简单可池化对象,此对象会同时持有原始对象和所在的分区
|
Copyright © 2025. All rights reserved.