August 2019
Intermediate to advanced
256 pages
6h 43m
English
A meter measures the rate at which the decorated method is called over time. For a JAX-RS endpoint, this would be the number of requests per second. Meters can be declared via an annotation:
@GET@Path("/m")@Metered(absolute = true)public String getMetered() { return "Metered called";}
When a client requests the data from the meter, the server supplies the mean rate, as well as one-, five-, and fifteen-minute moving averages. The latter may be familiar to some readers from the Unix/Linux uptime command.
Read now
Unlock full access