Package org.apache.storm.metric.timed
Interface TimerDecorated
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
Timed,TimedResource,TimedWritableByteChannel,TimePortAndAssignment,TimerDecoratedAssignment
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()longdefault longstopTiming(com.codahale.metrics.Timer.Context timing) Stop the timer for measured object.
-
Method Details
-
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
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-