-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd608f8
commit e3b540c
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Snowflake.Data.Core.Session; | ||
|
||
namespace Snowflake.Data.Core.ConnectionPool | ||
{ | ||
class ConnectionPoolManagerV2 : ConnectionPoolManagerBase | ||
{ | ||
private const bool AllowExceedMaxPoolSizeDefault = false; | ||
// private const int MinPoolSizeDefault = 0; // TODO: SNOW-902610 | ||
private const int MaxPoolSizeDefault = 10; | ||
|
||
protected override PoolManagerVersion GetVersion() => PoolManagerVersion.Version2; | ||
|
||
protected override void ApplyPoolDefaults(SessionPool pool) | ||
{ | ||
pool.SetAllowExceedMaxPoolSize(AllowExceedMaxPoolSizeDefault); | ||
// pool.SetMinPoolSize(MinPoolSizeDefault); // TODO: SNOW-902610 | ||
pool.SetMaxPoolSize(MaxPoolSizeDefault); | ||
} | ||
} | ||
} |