Interface ExecutionStats
public interface ExecutionStats
A snapshot of a
RequestExecutionEngine run's progress: how many requests have been
requested, completed and failed, how many are in flight or pending, and how long the run
has been going. The same shape is reported live during a run (via
RequestExecution.stats()) and for the terminated run (via
RequestExecutionResult.stats()).-
Method Summary
-
Method Details
-
requested
int requested()- Returns:
- The number of requests requested so far for this run.
-
completed
int completed()- Returns:
- The number of requests that have received a response so far (
RequestStatus.RESPONDED).
-
failed
int failed()- Returns:
- The number of requests that have failed so far (connection failure, timeout, unknown host, or abandoned on cancellation).
-
inFlight
int inFlight()- Returns:
- The number of requests sent and awaiting a response.
-
pending
int pending()- Returns:
- The number of requests queued but not yet sent.
-
elapsed
Duration elapsed()- Returns:
- The elapsed time for the run so far, or its total duration once finished.
-