Package org.miaixz.bus.core.lang.pool
Interface Poolable<T>
- Type Parameters:
T- 对象类型
- All Superinterfaces:
Wrapper<T>
- All Known Implementing Classes:
PartitionPoolable
池化对象
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionlong获取最后借出时间voidsetLastBorrow(long lastBorrow) 设置最后借出时间,在成功借出此对象时更新时间
-
Method Details
-
getLastBorrow
long getLastBorrow()获取最后借出时间- Returns:
- 最后借出时间
-
setLastBorrow
void setLastBorrow(long lastBorrow) 设置最后借出时间,在成功借出此对象时更新时间- Parameters:
lastBorrow- 最后借出时间
-