void touchConnection() { provider.touchConnection(connection, ahcRequest); }
void touchConnection() { provider.touchConnection(connection, ahcRequest); }
void touchConnection() { provider.touchConnection(connection, ahcRequest); }
public void touch() { provider.touchConnection(connection, request); }
public void completed(Connection connection) { future.setConnection(connection); provider.touchConnection(connection, request); if (wrappedHandler != null) { connection.addCloseListener(connectionMonitor); wrappedHandler.completed(connection); } }
void doAsyncTrackedConnection(final Request request, final GrizzlyResponseFuture requestFuture, final CompletionHandler<Connection> connectHandler) throws IOException, ExecutionException, InterruptedException { Connection c = pool.poll(getPoolKey(request, requestFuture.getProxy())); if (c == null) { if (!connectionMonitor.acquire()) { throw new IOException("Max connections exceeded"); } doAsyncConnect(request, requestFuture, connectHandler); } else { provider.touchConnection(c, request); connectHandler.completed(c); } }