T
- 对象类型public class SimplePoolable<T> extends Object implements Poolable<T>
Constructor and Description |
---|
SimplePoolable(T raw)
构造
|
Modifier and Type | Method and Description |
---|---|
long |
getLastReturn()
获取最后归还时间
|
T |
getRaw()
获取原始对象
|
void |
setLastReturn(long lastReturn)
设置最后归还时间,在成功归还此对象时更新时间
|
public SimplePoolable(T raw)
raw
- 原始对象public long getLastReturn()
Poolable
getLastReturn
in interface Poolable<T>
public void setLastReturn(long lastReturn)
Poolable
setLastReturn
in interface Poolable<T>
lastReturn
- 最后归还时间Copyright © 2025. All rights reserved.