Package 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
  Description
  `Timed(T measured, com.codahale.metrics.Timer timer)`

- ## Method Summary

  Modifier and Type
  Method
  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 Details

  - ### Timed

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

- ## Method Details

  - ### getMeasured

    public T getMeasured()

  - ### stopTiming

    public long stopTiming()
    Specified by:
      `stopTiming` in interface `TimerDecorated`