Lines Matching refs:prefSize
73 final private int prefSize;
82 * @param prefSize the preferred size of the pool. The pool will try
91 Connections(Object id, int initSize, int prefSize, int maxSize,
96 // prefSize and initSize cannot exceed specified maxSize
97 this.prefSize = Math.min(prefSize, maxSize);
100 this.prefSize = prefSize;
110 d("preferred size=", prefSize);
184 if (prefSize <= 0 || size >= prefSize) {
185 // If no prefSize specified, or list size already meets or
186 // exceeds prefSize, then first look for an idle connection
212 * If the list size is below prefSize, the connection may be reused.
213 * If the list size exceeds prefSize, then the connection is closed
227 if (closed || (prefSize > 0 && conns.size() > prefSize)) {
228 // If list size exceeds prefSize, close connection