Package com.landawn.abacus.pool
Class PoolableWrapper<T>
java.lang.Object
com.landawn.abacus.pool.AbstractPoolable
com.landawn.abacus.pool.PoolableWrapper<T>
- Type Parameters:
T
-
- Since:
- 0.8
- Author:
- Haiyang Li
-
Constructor Summary
ConstructorDescriptionPoolableWrapper
(T srcObject) Wrap the the source object withLong.MAX_VALUE
liveTime
andLong.MAX_VALUE
maxIdleTime
.PoolableWrapper
(T srcObject, long liveTime, long maxIdleTime) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy.boolean
int
hashCode()
static <T> PoolableWrapper<T>
of
(T srcObject) Wrap the the source object withLong.MAX_VALUE
liveTime
andLong.MAX_VALUE
maxIdleTime
.static <T> PoolableWrapper<T>
of
(T srcObject, long liveTime, long maxIdleTime) Wrap the the source object with specifiedliveTime
andmaxIdleTime
.toString()
value()
Methods inherited from class com.landawn.abacus.pool.AbstractPoolable
activityPrint
-
Constructor Details
-
PoolableWrapper
Wrap the the source object withLong.MAX_VALUE
liveTime
andLong.MAX_VALUE
maxIdleTime
.- Parameters:
srcObject
-
-
PoolableWrapper
- Parameters:
srcObject
-liveTime
-maxIdleTime
-
-
-
Method Details
-
of
Wrap the the source object withLong.MAX_VALUE
liveTime
andLong.MAX_VALUE
maxIdleTime
.- Type Parameters:
T
-- Parameters:
srcObject
-- Returns:
-
of
Wrap the the source object with specifiedliveTime
andmaxIdleTime
.- Type Parameters:
T
-- Parameters:
srcObject
-liveTime
-maxIdleTime
-- Returns:
-
value
- Returns:
- T
-
destroy
public void destroy()Destroy. -
hashCode
public int hashCode() -
equals
-
toString
-