io.mats3.api.intercept.MatsMetricsInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mats-intercept-api Show documentation
Show all versions of mats-intercept-api Show documentation
Extension to the Mats^3 API which adds interception capabilities.
package io.mats3.api.intercept;
/**
* Marker interface to denote a metrics interceptor. The MatsFactory will only allow one such singleton interceptor, and
* remove any previously installed if subsequently installing another.
*/
public interface MatsMetricsInterceptor {
/**
* When measuring "initiate complete", and the initiation ends up sending no messages, there is no
* InitiatorId
to include. This is a constant that can be used instead. Value is
* "_no_outgoing_messages_"
. (Note that this also holds for logging, but it came up first with
* pure metrics).
*/
String INITIATOR_ID_WHEN_NO_OUTGOING_MESSAGES = "_no_outgoing_messages_";
}