Package com.landawn.abacus.pool
Interface Poolable
- All Known Implementing Classes:
AbstractPoolable
,PoolableWrapper
public interface Poolable
- Since:
- 0.8
- Author:
- Haiyang Li
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Method destroy.static <T> PoolableWrapper<T>
wrap
(T srcObject) Wrap the the source object withLong.MAX_VALUE
liveTime
andLong.MAX_VALUE
maxIdleTime
.static <T> PoolableWrapper<T>
wrap
(T srcObject, long liveTime, long maxIdleTime) Wrap the the source object with specifiedliveTime
andmaxIdleTime
.
-
Method Details
-
activityPrint
ActivityPrint activityPrint()- Returns:
- ActivityPrint
-
destroy
void destroy()Method destroy. -
wrap
Wrap the the source object withLong.MAX_VALUE
liveTime
andLong.MAX_VALUE
maxIdleTime
.- Type Parameters:
T
-- Parameters:
srcObject
-- Returns:
-
wrap
Wrap the the source object with specifiedliveTime
andmaxIdleTime
.- Type Parameters:
T
-- Parameters:
srcObject
-liveTime
-maxIdleTime
-- Returns:
-