T - the type of object being pooledpublic abstract class PooledObject<T>
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier | Constructor and Description |
|---|---|
protected |
PooledObject(AbstractPool<PooledObject<T>> pool,
T object) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
T |
get()
Retrieve the underlying pooled object.
|
protected PooledObject(AbstractPool<PooledObject<T>> pool, T object)
public T get()
public void close()
throws javax.jms.JMSException
close in interface java.lang.AutoCloseablejavax.jms.JMSException