Class AbstractConnPool

    • Method Detail

      • freeEntry

        public abstract void freeEntry​(BasicPoolEntry entry,
                                       boolean reusable,
                                       long validDuration,
                                       TimeUnit timeUnit)
        Deprecated.
        Returns an entry into the pool. The connection of the entry is expected to be in a suitable state, either open and re-usable, or closed. The pool will not make any attempt to determine whether it can be re-used or not.
        Parameters:
        entry - the entry for the connection to release
        reusable - true if the entry is deemed reusable, false otherwise.
        validDuration - The duration that the entry should remain free and reusable.
        timeUnit - The unit of time the duration is measured in.
      • handleReference

        public void handleReference​(Reference<?> ref)
        Deprecated.
      • closeIdleConnections

        public void closeIdleConnections​(long idletime,
                                         TimeUnit timeUnit)
        Deprecated.
        Closes idle connections.
        Parameters:
        idletime - the time the connections should have been idle in order to be closed now
        timeUnit - the unit for the idletime
      • closeExpiredConnections

        public void closeExpiredConnections()
        Deprecated.
      • deleteClosedConnections

        public abstract void deleteClosedConnections()
        Deprecated.
        Deletes all entries for closed connections.
      • shutdown

        public void shutdown()
        Deprecated.
        Shuts down this pool and all associated resources. Overriding methods MUST call the implementation here!