改造ResourcePool 增加支持资源池

Signed-off-by: johnnyeven_work <oldfoxlyw@163.com>