Search
Duplicate
โ˜•

connection pool ์ƒ์„ฑ ๊ณผ์ •

hikari pool ์—๋Š” private final ConcurrentBag<PoolEntry> connectionBag; ์ด ์žˆ๋‹ค.
PoolEntry ๋ฅผ ๋งŒ๋“ค๊ณ  connectionBag ์— add ํ•œ๋‹ค.
connectionBag ์—๋Š” private final CopyOnWriteArrayList<T> sharedList; ๊ฐ€ ์žˆ๋‹ค.
์•„๋งˆ ์“ฐ๋ ˆ๋“œ์— ์˜ํ•ด ์ƒ์„ฑ๋˜๋Š” weaked list ์ธ ๋“ฏ ํ•˜๋‹ค