org.apache.storm.metric.timed

## Class Timed<T>

- java.lang.Object
- - org.apache.storm.metric.timed.Timed<T>

- All Implemented Interfaces:
    AutoCloseable, TimerDecorated
  Direct Known Subclasses:
    TimedResource, TimePortAndAssignment

      public class Timed<T>
      extends Object
      implements TimerDecorated

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Timed(T measured, com.codahale.metrics.Timer timer)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `getMeasured()`
    `long` | `stopTiming()`

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

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

    - ### Methods inherited from interface org.apache.storm.metric.timed.TimerDecorated

      `close, stopTiming`

- - ### Constructor Detail

    - #### Timed

          public Timed(T measured,
                       com.codahale.metrics.Timer timer)

  - ### Method Detail

    - #### getMeasured

          public T getMeasured()

    - #### stopTiming

          public long stopTiming()

      Specified by:
        `stopTiming` in interface `TimerDecorated`

Copyright © 2021 The Apache Software Foundation. All rights reserved.