Class MetricsFeature

  • All Implemented Interfaces:
    javax.ws.rs.container.DynamicFeature

    @Provider
    @ConstrainedTo(SERVER)
    public class MetricsFeature
    extends java.lang.Object
    implements javax.ws.rs.container.DynamicFeature
    • Constructor Summary

      Constructors 
      Constructor Description
      MetricsFeature()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String buildMetricsName​(javax.ws.rs.container.ResourceInfo resourceInfo, java.lang.String suffix)
      Build a name that completely describes a REST resource
      void configure​(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext context)  
      • Methods inherited from class java.lang.Object

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

      • MetricsFeature

        public MetricsFeature()
    • Method Detail

      • configure

        public void configure​(javax.ws.rs.container.ResourceInfo resourceInfo,
                              javax.ws.rs.core.FeatureContext context)
        Specified by:
        configure in interface javax.ws.rs.container.DynamicFeature
      • buildMetricsName

        public static final java.lang.String buildMetricsName​(javax.ws.rs.container.ResourceInfo resourceInfo,
                                                              java.lang.String suffix)
        Build a name that completely describes a REST resource
        Parameters:
        resourceInfo -
        suffix - Optional suffix to add (skipped if null)
        Returns: