forked from alibaba/druid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdruid-pool.txt
29 lines (27 loc) · 1.77 KB
/
druid-pool.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ConnectionPool
|---------------------------|
| |
getConnection | |
(notEmpty.await) | |
(lowWater.signal) | |
(maxActive.await) | |
<-------------------------- | |
<-------------------------- | |
<-------------------------- | |
| |
| |
--------------------------> | |
--------------------------> | | 销毁多余连接的线程
--------------------------> | | (highWater.awati, idleTimeout.await)
close | | -------------------------------------->
(highWater.signal) | |
(maxActive.signal) | |
| |
| |
产生连接的线程 | |
(lowWater.await) | |
(notEmpty.signal) | |
--------------------------> | |
| |
|---------------------------|
五个Condition:notEmpty、maxActive、lowWater、hightWater, idleTime