java.lang.Object
org.miaixz.bus.core.lang.pool.SimplePoolable<T>
- Type Parameters:
T- 对象类型
- Direct Known Subclasses:
PartitionPoolable
简单可池化对象,此对象会同时持有原始对象和所在的分区
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong获取最后归还时间getRaw()获取原始对象voidsetLastReturn(long lastReturn) 设置最后归还时间,在成功归还此对象时更新时间
-
Constructor Details
-
SimplePoolable
构造- Parameters:
raw- 原始对象
-
-
Method Details
-
getRaw
Description copied from interface:Wrapper获取原始对象 -
getLastReturn
public long getLastReturn()Description copied from interface:Poolable获取最后归还时间- Specified by:
getLastReturnin interfacePoolable<T>- Returns:
- 最后借出时间
-
setLastReturn
public void setLastReturn(long lastReturn) Description copied from interface:Poolable设置最后归还时间,在成功归还此对象时更新时间- Specified by:
setLastReturnin interfacePoolable<T>- Parameters:
lastReturn- 最后归还时间
-