Class ConnectionCacheBase<C extends Connection>

    • Field Detail

      • flag

        private boolean flag
      • cacheType

        private final java.lang.String cacheType
      • highWaterMark

        private final int highWaterMark
      • numberToReclaim

        private final int numberToReclaim
    • Constructor Detail

      • ConnectionCacheBase

        ConnectionCacheBase​(java.lang.String cacheType,
                            int highWaterMark,
                            int numberToReclaim)
    • Method Detail

      • getCacheType

        public final java.lang.String getCacheType()
        Description copied from interface: ConnectionCache
        User-provided identifier for an instance of the OutboundConnectionCache.
        Specified by:
        getCacheType in interface ConnectionCache<C extends Connection>
        Returns:
        identifier String
      • thisClassName

        protected abstract java.lang.String thisClassName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • display

        @InfoMethod
        private void display​(java.lang.String msg,
                             java.lang.Object value)
      • reclaim

        protected boolean reclaim()
        Reclaim some idle cached connections. Will never close a connection that is busy.
        Returns:
        True if at least one connection was reclaimed