Package 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 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. 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 interfaceAutoCloseable
- Throws:
Exception
-
-