public interface ObjectFactory
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
createObject()
Create object if unavaliable
|
void |
destroyObject(Object object)
Release the pooled object and remove it from the pool.
|
default boolean |
testObject(Object object)
Verify the pooled object when it is idle or borrowed.
|
Copyright © 2021. All rights reserved.