Class DefaultInteractionMetrics
java.lang.Object
io.vertx.core.net.endpoint.DefaultInteractionMetrics
- All Implemented Interfaces:
InteractionMetrics<DefaultInteractionMetric>
public class DefaultInteractionMetrics
extends Object
implements InteractionMetrics<DefaultInteractionMetric>
Default interaction metrics.
-
Field Summary
Fields inherited from interface InteractionMetrics
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInitiate a requestintintintintintvoidreportFailure(DefaultInteractionMetric metric, Throwable failure) Signal the failure of a request/response to themetricvoidSignal the beginning of the request attached to themetricvoidSignal the end of the request attached to themetricvoidSignal the beginning of the response attached to themetricvoidSignal the end of the response attached to themetric
-
Constructor Details
-
DefaultInteractionMetrics
public DefaultInteractionMetrics()
-
-
Method Details
-
initiateRequest
Description copied from interface:InteractionMetricsInitiate a request- Specified by:
initiateRequestin interfaceInteractionMetrics<DefaultInteractionMetric>- Returns:
- the request metric
-
reportFailure
Description copied from interface:InteractionMetricsSignal the failure of a request/response to themetric- Specified by:
reportFailurein interfaceInteractionMetrics<DefaultInteractionMetric>- Parameters:
metric- the request metricfailure- the failure
-
reportRequestBegin
Description copied from interface:InteractionMetricsSignal the beginning of the request attached to themetric- Specified by:
reportRequestBeginin interfaceInteractionMetrics<DefaultInteractionMetric>- Parameters:
metric- the request/response metric
-
reportRequestEnd
Description copied from interface:InteractionMetricsSignal the end of the request attached to themetric- Specified by:
reportRequestEndin interfaceInteractionMetrics<DefaultInteractionMetric>- Parameters:
metric- the request/response metric
-
reportResponseBegin
Description copied from interface:InteractionMetricsSignal the beginning of the response attached to themetric- Specified by:
reportResponseBeginin interfaceInteractionMetrics<DefaultInteractionMetric>- Parameters:
metric- the request/response metric
-
reportResponseEnd
Description copied from interface:InteractionMetricsSignal the end of the response attached to themetric- Specified by:
reportResponseEndin interfaceInteractionMetrics<DefaultInteractionMetric>- Parameters:
metric- the request metric
-
numberOfInflightRequests
public int numberOfInflightRequests()- Returns:
- the number of inflight requests
-
numberOfRequests
public int numberOfRequests()- Returns:
- the total number of requests
-
numberOfFailures
public int numberOfFailures()- Returns:
- the total number of failures
-
minResponseTime
public int minResponseTime()- Returns:
- the min response time
-
maxResponseTime
public int maxResponseTime()- Returns:
- the max response time
-