Interface InteractionMetrics<M>
- All Known Implementing Classes:
DefaultInteractionMetrics
@Unstable
public interface InteractionMetrics<M>
Gather metrics for a request/response interaction with the server, this interface is write-only and used to report
usage to build statistics for a load balancing purpose.
- Author:
- Julien Viet
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault MInitiate a requestdefault voidreportFailure(M metric, Throwable failure) Signal the failure of a request/response to themetricdefault voidreportRequestBegin(M metric) Signal the beginning of the request attached to themetricdefault voidreportRequestEnd(M metric) Signal the end of the request attached to themetricdefault voidreportResponseBegin(M metric) Signal the beginning of the response attached to themetricdefault voidreportResponseEnd(M metric) Signal the end of the response attached to themetric
-
Field Details
-
INSTANCE
-
-
Method Details
-
initiateRequest
-
reportFailure
-
reportRequestBegin
Signal the beginning of the request attached to themetric- Parameters:
metric- the request/response metric
-
reportRequestEnd
Signal the end of the request attached to themetric- Parameters:
metric- the request/response metric
-
reportResponseBegin
Signal the beginning of the response attached to themetric- Parameters:
metric- the request/response metric
-
reportResponseEnd
Signal the end of the response attached to themetric- Parameters:
metric- the request metric
-