Pool for storing limited amount of connections as PooledConnection
. Pool is used by ConnectionAccessQueue
which takes care of the situations when connections aren't immediately available.
Methods which might alter the connection vectors are internally synchronized so that only one thread at a time can perform operations on them. However several threads may be creating connections at the same time.
@see PooledConnection @see ConnectionAccessQueue @see ConnectionFactory @version $Revision: 1.16 $ @author Jani Lehtim�kiA connection pooling implementation. This class is NOT meant to be used by the application directly. Rather, a DataSource object should wrap this class. @deprecated As of release 3.3, the newer pool should be used instead.
PoolBrokerService
.
@author Costas Stergiou
@author Frank Y. Kim
@author Brett McLaughlin
@author Greg Ritter
@author Daniel L. Rall
@author Paul O'Leary
@author Magn�s ��r Torfason
@author Jon S. Stevens
@version $Id$
Purpose: Used to specify how connection should be pooled in a server session. @see ServerSession
历史更新记录: 2005-06-25 创建此类型 2005-10-29 修改了closeConnectionPool()方法 2008-10-24 在PooledConnection中记录默认事务隔离级别,当返回连接时将恢复默认事务隔离级别 2008-10-30 解决以前没有处理的问题,连接池满的检查@author wenjian @version 1.0 @since JThink 1.0
Connection�C���X�^���X�� {@link #engageConnection(long)} ���\�b�h�Ŏ擾���܂��B���̃��\�b�h�ł́AConnectionPool�ɗ��p�\��Connection �����݂��邩�ǂ������m�F���A���݂���ꍇ�͂���Connection��Ԃ��܂��B ConnectionPool�ł́A����Connection��pool����폜���A�g�p����Connection���� �J�E���g���܂��B
ConnectionPool�ɗ��p�\��Connection�����݂����A����Pool���Ă���Connection ���� {@link #MAX_POOL_SIZE} �ɓ��B���Ă����Ȃ��ꍇ�A�V����Connection�C���X�^���X�����Ă���A�g�p����Connection�����J�E���g���A ����Connection��Ԃ��܂��B
ConnectionPool�ɗ��p�\��Connection�����݂����A����Pool���Ă���Connection ���� {@link #MAX_POOL_SIZE} �ɓ��B���Ă���ꍇ�A�����Ɏw�肳�ꂽ�^�C���A�E�g���ԁi�b�j���o�߂���܂ŁAPool�ɗ��p�\��Connection���ԋp����� �̂�҂��܂��B
Connection�̕ԋp�� {@link java.sql.Connection#close()} ���\�b�h���Ăяo�����ƂŎ����I�ɍs���܂��B {@link #engageConnection(long)} ���\�b�h���Ԃ��̂́A���ۂɂ� {@link ConnectionProxy} �C���X�^���X�ł���A{@link java.sql.Connection} �����b�v���Ă��܂��BConnectionProxy��close()���\�b�h�ł́AConnection��close()���\�b�h�͌Ăяo�����AConnectionPool �ւ̕ԋp�������s���邾���ł��B���̍ہA�S�Ẵg�����U�N�V�����̓��[���o�b�N ����܂��B
�܂��AConnection��close()���\�b�h���Ăяo����Ȃ��Ă��Afinalize()���\�b�h ���Ăяo���ꂽ���iGC���j��ConnectionPool�ւ̕ԋp�������s���܂����A finalize()���\�b�h���Ăяo�����^�C�~���O��JVM�̎����Ɉˑ�����\���� ���邽�߁A��������҂��������͍s�킸�A�K��Connection�g�p���close()���\�b�h ���ĂԂ悤�ɂ��Ă��������B
$Id$ @author Masatoshi sato
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|