ConnectionPoolDataSource

ConnectionPoolDataSource (연결 풀 데이터 소스)

PooledConnection 객체를 위한 팩토리입니다. 이 인터페이스를 구현하는 객체는 보통 Java Naming and Directory Interface(JNDI) 기반의 이름 서비스에 등록됩니다.

출처: Java API Reference

본문

getPooledConnection은 풀링된 연결로 사용할 수 있는 물리적 데이터베이스 연결을 설정하려 시도합니다. 사용자 이름과 비밀번호를 받는 버전은 주어진 자격 증명으로 연결을 설정합니다.

getLogWriter/setLogWriter는 데이터 소스의 로그 기록자를, getLoginTimeout/setLoginTimeout은 로그인 타임아웃을 관리합니다. createPooledConnectionBuilder는 PooledConnectionBuilder 인스턴스를 만듭니다.

PooledConnection getPooledConnection() throws SQLException
PooledConnection getPooledConnection(String user, String password) throws SQLException
PrintWriter getLogWriter() throws SQLException
void setLogWriter(PrintWriter out) throws SQLException
void setLoginTimeout(int seconds) throws SQLException
int getLoginTimeout() throws SQLException
default PooledConnectionBuilder createPooledConnectionBuilder() throws SQLException

더 알아보기 (Learn more)

Java 공식 API