Class MetricsInterceptor

  • All Implemented Interfaces:
    javax.ws.rs.container.ContainerRequestFilter, javax.ws.rs.container.ContainerResponseFilter

    public class MetricsInterceptor
    extends java.lang.Object
    implements javax.ws.rs.container.ContainerRequestFilter, javax.ws.rs.container.ContainerResponseFilter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONTEXT_KEY  
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricsInterceptor​(com.codahale.metrics.Timer timer, com.codahale.metrics.Meter meter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void filter​(javax.ws.rs.container.ContainerRequestContext requestContext)  
      void filter​(javax.ws.rs.container.ContainerRequestContext requestContext, javax.ws.rs.container.ContainerResponseContext responseContext)  
      • Methods inherited from class java.lang.Object

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

      • MetricsInterceptor

        public MetricsInterceptor​(com.codahale.metrics.Timer timer,
                                  com.codahale.metrics.Meter meter)
    • Method Detail

      • filter

        public void filter​(javax.ws.rs.container.ContainerRequestContext requestContext)
        Specified by:
        filter in interface javax.ws.rs.container.ContainerRequestFilter
      • filter

        public void filter​(javax.ws.rs.container.ContainerRequestContext requestContext,
                           javax.ws.rs.container.ContainerResponseContext responseContext)
        Specified by:
        filter in interface javax.ws.rs.container.ContainerResponseFilter