/** * Start and end client execution timer around the execution of the request. It's important * that the client execution task is canceled before the InterruptedExecption is handled by * {@link #execute()} so * the interrupt status doesn't leak out to the callers code */ private Response<Output> executeWithTimer() throws InterruptedException { ClientExecutionAbortTrackerTask clientExecutionTrackerTask = clientExecutionTimer.startTimer(getClientExecutionTimeout(requestConfig)); try { executionContext.setClientExecutionTrackerTask(clientExecutionTrackerTask); return doExecute(); } finally { executionContext.getClientExecutionTrackerTask().cancelTask(); } }
/** * Start and end client execution timer around the execution of the request. It's important * that the client execution task is canceled before the InterruptedExecption is handled by * {@link #execute()} so * the interrupt status doesn't leak out to the callers code */ private Response<Output> executeWithTimer() throws InterruptedException { ClientExecutionAbortTrackerTask clientExecutionTrackerTask = clientExecutionTimer.startTimer(getClientExecutionTimeout(requestConfig)); try { executionContext.setClientExecutionTrackerTask(clientExecutionTrackerTask); return doExecute(); } finally { executionContext.getClientExecutionTrackerTask().cancelTask(); } }
/** * Start and end client execution timer around the execution of the request. It's important * that the client execution task is canceled before the InterruptedExecption is handled by * {@link #execute()} so * the interrupt status doesn't leak out to the callers code */ private Response<Output> executeWithTimer() throws InterruptedException { ClientExecutionAbortTrackerTask clientExecutionTrackerTask = clientExecutionTimer.startTimer(getClientExecutionTimeout(requestConfig)); try { executionContext.setClientExecutionTrackerTask(clientExecutionTrackerTask); return doExecute(); } finally { executionContext.getClientExecutionTrackerTask().cancelTask(); } }