Class PooledConnection

  • All Implemented Interfaces:
    AutoCloseable, Connection, Wrapper

    public class PooledConnection
    extends Object
    implements Connection
    Wrapping of a real database connection so that we can intercept the close call and therefore reuse the connection. Note that we also listen for any exceptions generated, and assume (for better or for worse) that something might be broken so call back to the connection provider so that it can decide whether or not to abandon the underlying connection.