[CONTAINER-417] [S2DBCP] maxPoolSize で指定された数のコネクションが既に使われている場合,コネクションが空くまで待機する最大時間を maxWait プロパティで指定できるようにしました. Created: 2010-03-25 Updated: 2010-03-25 Resolved: 2010-03-25 |
|
| Status: | Resolved |
| Project: | S2Container |
| Component/s: | S2DBCP |
| Affects Version/s: | 2.4.41 |
| Fix Version/s: | 2.4.42 |
| Type: | Improvement | Priority: | Major |
| Reporter: | shinsuke | Assignee: | koichik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
ConnectionPoolImpl#checkOut() で maxPoolSize を超えて たとえば、ConnectionPoolImpl#checkOut()で以下のように while (getMaxPoolSize() > 0 && getActivePoolSize() + getTxActivePoolSize() >= getMaxPoolSize()) { // 追加: ここから if(throwExceptionOnExceededMaxPoolSize){ throw new SIllegalStateException("ESSR03XX", null); } // 追加: ここまで try { wait(); } catch (InterruptedException ignore) { } } |
| Comments |