Created
July 13, 2020 15:07
-
-
Save eldermoraes/8538cc2306ffb00f330060950c3a3108 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path("/mymetrics") | |
public class MetricsResource { | |
@GET | |
@Path("counted") | |
@Counted | |
public String getCounted(){ | |
return "Counted"; | |
} | |
@GET | |
@Path("timed") | |
@Timed | |
public String getTimed(){ | |
return "Timed"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment