public ConnectionInterceptor addPoolingInterceptors(ConnectionInterceptor tail) { if (isMatchAll()) { SinglePoolMatchAllConnectionInterceptor pool = new SinglePoolMatchAllConnectionInterceptor(tail, getMaxSize(), getMinSize(), getBlockingTimeoutMilliseconds(), getIdleTimeoutMinutes()); this.pool = pool; return pool; } else { SinglePoolConnectionInterceptor pool = new SinglePoolConnectionInterceptor(tail, getMaxSize(), getMinSize(), getBlockingTimeoutMilliseconds(), getIdleTimeoutMinutes(), isSelectOneAssumeMatch()); this.pool = pool; return pool; } }