Enum SampledSpanStore.LatencyBucketBoundaries

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      MICROSx10_MICROSx100
      Stores finished successful requests of duration within the interval [10us, 100us).
      MICROSx100_MILLIx1
      Stores finished successful requests of duration within the interval [100us, 1ms).
      MILLIx1_MILLIx10
      Stores finished successful requests of duration within the interval [1ms, 10ms).
      MILLIx10_MILLIx100
      Stores finished successful requests of duration within the interval [10ms, 100ms).
      MILLIx100_SECONDx1
      Stores finished successful requests of duration within the interval [100ms, 1sec).
      SECONDx1_SECONDx10
      Stores finished successful requests of duration within the interval [1sec, 10sec).
      SECONDx10_SECONDx100
      Stores finished successful requests of duration within the interval [10sec, 100sec).
      SECONDx100_MAX
      Stores finished successful requests of duration >= 100sec.
      ZERO_MICROSx10
      Stores finished successful requests of duration within the interval [0, 10us).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LatencyBucketBoundaries​(long latencyLowerNs, long latencyUpperNs)
      Constructs a LatencyBucketBoundaries with the given boundaries and label.
    • Field Detail

      • latencyLowerNs

        private final long latencyLowerNs
      • latencyUpperNs

        private final long latencyUpperNs
    • Constructor Detail

      • LatencyBucketBoundaries

        private LatencyBucketBoundaries​(long latencyLowerNs,
                                        long latencyUpperNs)
        Constructs a LatencyBucketBoundaries with the given boundaries and label.
        Parameters:
        latencyLowerNs - the latency lower bound of the bucket.
        latencyUpperNs - the latency upper bound of the bucket.
    • Method Detail

      • values

        public static SampledSpanStore.LatencyBucketBoundaries[] 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 (SampledSpanStore.LatencyBucketBoundaries c : SampledSpanStore.LatencyBucketBoundaries.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SampledSpanStore.LatencyBucketBoundaries valueOf​(java.lang.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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getLatencyLowerNs

        public long getLatencyLowerNs()
        Returns the latency lower bound of the bucket.
        Returns:
        the latency lower bound of the bucket.
        Since:
        0.5
      • getLatencyUpperNs

        public long getLatencyUpperNs()
        Returns the latency upper bound of the bucket.
        Returns:
        the latency upper bound of the bucket.
        Since:
        0.5