Package kong.unirest
Interface MetricContext
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MetricContext
A metric context for the current request
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
complete(HttpResponseSummary httpResponse, Exception ex)
Finishes a Http Request.
-
-
-
Method Detail
-
complete
void complete(HttpResponseSummary httpResponse, Exception ex)
Finishes a Http Request. Called just after the main request but before any mapping function including before any streaming responses (like file downloads) are complete.- Parameters:
httpResponse
- a summary of the just executed response or null in the case of a system exception.ex
- an exception if one happened or null . Note that this is not just a 500 from the remote, but more likely a socket or connection timeout.
-
-