T - public final class PoolableWrapper<T> extends AbstractPoolable
| Constructor and Description |
|---|
PoolableWrapper(T srcObject)
Wrap the the source object with
Long.MAX_VALUE liveTime and Long.MAX_VALUE maxIdleTime. |
PoolableWrapper(T srcObject,
long liveTime,
long maxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy.
|
boolean |
equals(Object obj) |
int |
hashCode() |
static <T> PoolableWrapper<T> |
of(T srcObject)
Wrap the the source object with
Long.MAX_VALUE liveTime and Long.MAX_VALUE maxIdleTime. |
static <T> PoolableWrapper<T> |
of(T srcObject,
long liveTime,
long maxIdleTime)
Wrap the the source object with specified
liveTime and maxIdleTime. |
String |
toString() |
T |
value() |
activityPrintpublic PoolableWrapper(T srcObject)
Long.MAX_VALUE liveTime and Long.MAX_VALUE maxIdleTime.srcObject - public PoolableWrapper(T srcObject, long liveTime, long maxIdleTime)
public static <T> PoolableWrapper<T> of(T srcObject)
Long.MAX_VALUE liveTime and Long.MAX_VALUE maxIdleTime.T - srcObject - public static <T> PoolableWrapper<T> of(T srcObject, long liveTime, long maxIdleTime)
liveTime and maxIdleTime.T - srcObject - liveTime - maxIdleTime - public T value()
public void destroy()
public boolean equals(Object obj)
Copyright © 2021. All rights reserved.