Class ConnectionPool<T extends ConnectionRecord>

    • Constructor Detail

      • ConnectionPool

        public ConnectionPool()
      • ConnectionPool

        public ConnectionPool​(SQLConnectionImpl connectionParameters,
                              int connectionType)
    • Method Detail

      • getUuid

        public UUID getUuid()
      • setConnectionParameters

        public void setConnectionParameters​(ConnectionParameters connectionParameters)
      • setType

        public void setType​(int type)
      • setupDriverManager

        protected void setupDriverManager()
      • getStackMap

        public StackMap getStackMap()
      • setStackMap

        public void setStackMap​(StackMap stackMap)
      • push

        public void push​(T object)
                  throws PoolException
        Description copied from class: Pool
        Check an object into the pool. If the pool is at capacity, destroy the object.
        Overrides:
        push in class Pool<T extends ConnectionRecord>
        Parameters:
        object - the object
        Throws:
        PoolException
      • isValid

        public boolean isValid​(T t)
                        throws PoolException
        Description copied from class: Pool
        Is this item still good? If not it will be removed from the pool so a new one can be created. Default is to return true.
        Overrides:
        isValid in class Pool<T extends ConnectionRecord>
        Throws:
        PoolException
      • isCleanupEnabled

        public boolean isCleanupEnabled()
      • setCleanupEnabled

        public void setCleanupEnabled​(boolean cleanupEnabled)
      • getCleanupInterval

        public long getCleanupInterval()
      • setCleanupInterval

        public void setCleanupInterval​(long cleanupInterval)
      • getIdelLifetime

        public long getIdelLifetime()
      • setIdelLifetime

        public void setIdelLifetime​(long idelLifetime)
      • isEnableQueue

        public boolean isEnableQueue()
      • setEnableQueue

        public void setEnableQueue​(boolean enableQueue)
      • getQueueInterval

        public long getQueueInterval()
      • setQueueInterval

        public void setQueueInterval​(long queueInterval)
      • getType

        public int getType()
      • shutdown

        public void shutdown()
        For those store that need some cleanup.