com.h3c.sdn.metric

## Class TimerMetricValue.Builder<T extends TimerMetricValue.Builder<T>>

- java.lang.Object
- - com.h3c.sdn.metric.MetricValue.Builder<T>
  - - com.h3c.sdn.metric.TimerMetricValue.Builder<T>

- Type Parameters:
    `T` - specific metric value sub class
  Enclosing class:
    TimerMetricValue

      public abstract static class TimerMetricValue.Builder<T extends TimerMetricValue.Builder<T>>
      extends MetricValue.Builder<T>

  Builder (mutable) used to create a new value instances.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TimerMetricValue.Builder()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `TimerMetricValue` | `build()`
    `T` | `expectedFieldCount(long value)` Sets the expected field count.
    `T` | `maximum(long value)` Sets the maximum.
    `T` | `mean(double value)` Sets the mean.
    `T` | `minimum(long value)` Sets the minimum.
    `T` | `rate(double value)` Sets the rate.
    `T` | `stdDev(double value)` Sets the standard deviation.

    - ### Methods inherited from class com.h3c.sdn.metric.MetricValue.Builder

      `count, millisecondsSpan, persistDate, self, type, uid, updateDate`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TimerMetricValue.Builder

          public TimerMetricValue.Builder()

  - ### Method Detail

    - #### minimum

          public T minimum(long value)

      Sets the minimum.
      Parameters:
        `value` - the minimum value
      Returns:
        this instance

    - #### maximum

          public T maximum(long value)

      Sets the maximum.
      Parameters:
        `value` - the maximum value
      Returns:
        this instance

    - #### expectedFieldCount

          public T expectedFieldCount(long value)

      Sets the expected field count.
      Parameters:
        `value` - the expected field count value
      Returns:
        this instance

    - #### rate

          public T rate(double value)

      Sets the rate.
      Parameters:
        `value` - the rate value
      Returns:
        this instance

    - #### mean

          public T mean(double value)

      Sets the mean.
      Parameters:
        `value` - the mean value
      Returns:
        this instance

    - #### stdDev

          public T stdDev(double value)

      Sets the standard deviation.
      Parameters:
        `value` - the standard deviation value
      Returns:
        this instance

    - #### build

          public TimerMetricValue build()

      Overrides:
        `build` in class `MetricValue.Builder<T extends TimerMetricValue.Builder<T>>`

Copyright © 2014. All Rights Reserved.