Package org.apache.storm.metric.timed

## Class TimedResource<T extends AutoCloseable>

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

- All Implemented Interfaces:
    `AutoCloseable`, `TimerDecorated`
  Direct Known Subclasses:
    `TimedWritableByteChannel`

      public class TimedResource<T extends AutoCloseable>
      extends Timed<T>

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TimedResource​(T measured, com.codahale.metrics.Timer timer)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `close()` |

    - ### Methods inherited from class org.apache.storm.metric.timed.Timed

      `getMeasured, 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

      `stopTiming`

- - ### Constructor Detail

    - #### TimedResource

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

  - ### Method Detail

    - #### close

          public void close()
                     throws Exception

      Throws:
        `Exception`