/// <summary> /// 释放池中 /// </summary> /// <param name="lastAccess"></param> public void Recycle(long lastAccess) { if (connection != null) { this.lastAccessed = lastAccess; hikariPool.Recycle(this); } }
/// <summary> /// 释放池中 /// </summary> /// <param name="lastAccess"></param> public void Recycle(long lastAccess) { if (connection != null) { this.lastAccessed = lastAccess; hikariPool.Recycle(this); } if (connection.State != ConnectionState.Open) { this.Close(); } }