Class HttpViews


  • public final class HttpViews
    extends java.lang.Object
    A helper class that allows users to register HTTP views easily.
    Since:
    0.13
    • Field Detail

      • HTTP_SERVER_VIEWS_SET

        static final com.google.common.collect.ImmutableSet<View> HTTP_SERVER_VIEWS_SET
      • HTTP_CLIENT_VIEWS_SET

        static final com.google.common.collect.ImmutableSet<View> HTTP_CLIENT_VIEWS_SET
    • Constructor Detail

      • HttpViews

        private HttpViews()
    • Method Detail

      • registerAllClientViews

        public static final void registerAllClientViews()
        Register all default client views.

        It is recommended to call this method before doing any HTTP call to avoid missing stats.

        Since:
        0.13
      • registerAllClientViews

        static void registerAllClientViews​(ViewManager viewManager)
      • registerAllServerViews

        public static final void registerAllServerViews()
        Register all default server views.

        It is recommended to call this method before doing any HTTP call to avoid missing stats.

        Since:
        0.13
      • registerAllServerViews

        static void registerAllServerViews​(ViewManager viewManager)
      • registerAllViews

        public static final void registerAllViews()
        Register all default views. Equivalent with calling registerAllClientViews() and registerAllServerViews().

        It is recommended to call this method before doing any HTTP call to avoid missing stats.

        Since:
        0.13
      • registerAllViews

        static void registerAllViews​(ViewManager viewManager)