Lines Matching refs:ConnectionResource
41 private final ConcurrentLinkedQueue<ConnectionResource> connections =
42 new ConcurrentLinkedQueue<ConnectionResource>();
68 * Get a {@code ConnectionResource} object from the pool, or create a
71 * {@link #releaseConnection(ConnectionResource)} after they are finished
74 * @return a {@code ConnectionResource} object
77 public ConnectionResource getConnectionResource() throws SQLException {
78 ConnectionResource cr = connections.poll();
80 cr = new ConnectionResource(this);
86 * Return a {@code ConnectionResource} back to the pool.
91 public void releaseConnection(ConnectionResource cr) throws SQLException {