Enum SubscriptionMode

    • Enum Constant Detail


        public static final SubscriptionMode SIMPLE_COUNTER

        Simple counter — client receives exact value of counter


        public static final SubscriptionMode SIMPLE_GAUGE

        Simple gauge — client receives exact value of gauge


        public static final SubscriptionMode DELTA_COUNTER

        Delta counter — client receives delta value between successive samples


        public static final SubscriptionMode PER_SECOND_COUNTER

        Delta counter — client receives delta value representing the per second difference between successive samples, rounded to the nearest whole integer.


        public static final SubscriptionMode ROLLING_FREQUENCY_DISTRIBUTION

        Frequency distribution with multiple generations and automatic rollover (default)


        public static final SubscriptionMode PERMANENT_FREQUENCY_DISTRIBUTION

        Permanent frequency distribution where all samples always contribute (no rollover)


        public static final SubscriptionMode RESETTING_FREQUENCY_DISTRIBUTION

        Frequency distribution where samples always contribute and the distribution is cleared when read by client

    • Method Detail

      • values

        public static SubscriptionMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SubscriptionMode c : SubscriptionMode.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SubscriptionMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isValidCounterMode

        public static boolean isValidCounterMode​(SubscriptionMode mode)
      • isValidSampleMode

        public static boolean isValidSampleMode​(SubscriptionMode mode)