Class PoolEntryWrapper<T>


  • public class PoolEntryWrapper<T>
    extends Object
    Element in a Pool. This wraps the connection and adds a timestamp so elements can be monitored for staleness.

    Created by Jeff Gaynor
    on 4/21/21 at 10:31 AM

    • Field Detail

      • connection

        public T connection
      • lastUsed

        public long lastUsed
    • Constructor Detail

      • PoolEntryWrapper

        public PoolEntryWrapper()
    • Method Detail

      • isExpired

        public boolean isExpired​(long interval)
        Has this connection outlived its designated lifetime?
        Parameters:
        interval -
        Returns: