org.apache.storm.metric.timed

## Interface TimerDecorated

- All Superinterfaces:
    AutoCloseable
  All Known Implementing Classes:
    Timed, TimedResource, TimedWritableByteChannel, TimePortAndAssignment, TimerDecoratedAssignment

      public interface TimerDecorated
      extends AutoCloseable

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default void` | `close()`
    `long` | `stopTiming()`
    `default long` | `stopTiming(com.codahale.metrics.Timer.Context timing)` Stop the timer for measured object.

- - ### Method Detail

    - #### stopTiming

          long stopTiming()

    - #### stopTiming

          default long stopTiming(com.codahale.metrics.Timer.Context timing)

      Stop the timer for measured object. (Copied from `Timer.Context#stop()`) Call to this method will not reset the start time. Multiple calls result in multiple updates.

      Returns:
        Time a object is in use, or under measurement, in nanoseconds.

    - #### close

          default void close()
                      throws Exception

      Specified by:
        `close` in interface `AutoCloseable`
      Throws:
        `Exception`

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