프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Clear | void | ||
CreateNewPooledConnection | |||
EnqueueIdle | void | ||
GetPooledConnection | |||
RemoveOldIdleConnections | List |
||
TryToGetDriver |
메소드 | 설명 | |
---|---|---|
GetConnection ( ) : |
||
MySqlPool ( |
||
ReleaseConnection ( |
||
RemoveConnection ( |
Removes a connection from the in use pool. The only situations where this method would be called are when a connection that is in use gets some type of fatal exception or when the connection is being returned to the pool and it's too old to be returned.
|
메소드 | 설명 | |
---|---|---|
Clear ( ) : void |
Clears this pool of all idle connections and marks this pool and being cleared so all other connections are closed when they are returned.
|
|
CreateNewPooledConnection ( ) : |
It is assumed that this method is only called from inside an active lock.
|
|
EnqueueIdle ( |
||
GetPooledConnection ( ) : |
It is assumed that this method is only called from inside an active lock.
|
|
RemoveOldIdleConnections ( ) : List |
Remove expired drivers from the idle pool Closing driver is a potentially lengthy operation involving network IO. Therefore we do not close expired drivers while holding idlePool.SyncRoot lock. We just remove the old drivers from the idle queue and return them to the caller. The caller will need to close them (or let GC close them) |
|
TryToGetDriver ( ) : |
public MySqlPool ( |
||
settings | ||
리턴 | System |