Package io.micronaut.jms.pool
Class PooledObject<T>
java.lang.Object
io.micronaut.jms.pool.PooledObject<T>
- Type Parameters:
T
- the type of object being pooled
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
PooledConnection
,PooledProducer
,PooledSession
Base class for wrappers of pooled objects.
- Since:
- 1.0.0
- Author:
- Elliott Pope
-
Constructor Summary
ModifierConstructorDescriptionprotected
PooledObject
(AbstractPool<PooledObject<T>> pool, T object) -
Method Summary
-
Constructor Details
-
PooledObject
-
-
Method Details
-
get
Retrieve the underlying pooled object.- Returns:
- the object
-
close
public void close() throws jakarta.jms.JMSException- Specified by:
close
in interfaceAutoCloseable
- Throws:
jakarta.jms.JMSException
-