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

public abstract class PooledObject<T> extends Object implements AutoCloseable
Base class for wrappers of pooled objects.
Since:
1.0.0
Author:
Elliott Pope
  • Constructor Details

  • Method Details

    • get

      public T get()
      Retrieve the underlying pooled object.
      Returns:
      the object
    • close

      public void close() throws javax.jms.JMSException
      Specified by:
      close in interface AutoCloseable
      Throws:
      javax.jms.JMSException