Class DemoService


  • @Path("/demo")
    public class DemoService
    extends java.lang.Object
    Demonstrating the use of Metrics Annotations.
    • Constructor Summary

      Constructors 
      Constructor Description
      DemoService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String echo​(java.lang.String string)  
      long getCount​(long number)  
      int getRandomInt​(int bound)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DemoService

        public DemoService()
    • Method Detail

      • getRandomInt

        @GET
        @Path("/rand/{bound}")
        @Metered
        public int getRandomInt​(@PathParam("bound")
                                int bound)
      • echo

        @GET
        @Path("/echo/{string}")
        @Timed
        public java.lang.String echo​(@PathParam("string")
                                     java.lang.String string)
      • getCount

        @GET
        @Path("/count/{number}")
        @Counted(monotonic=true)
        public long getCount​(@PathParam("number")
                             long number)