Package org.glassfish.pfl.tf.timer.impl
Class StatsEventHandlerImpl
java.lang.Object
org.glassfish.pfl.tf.timer.spi.NamedBase
org.glassfish.pfl.tf.timer.impl.StatsEventHandlerBase
org.glassfish.pfl.tf.timer.impl.StatsEventHandlerImpl
- All Implemented Interfaces:
Named,StatsEventHandler,TimerEventHandler
-
Field Summary
Fields inherited from class org.glassfish.pfl.tf.timer.impl.StatsEventHandlerBase
saList, UNITS -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Discard all accumulated statistics.voidnotify(TimerEvent event) protected voidrecordDuration(int id, long duration) Methods inherited from class org.glassfish.pfl.tf.timer.impl.StatsEventHandlerBase
notify, statsMethods inherited from class org.glassfish.pfl.tf.timer.spi.NamedBase
equals, factory, hashCode, name, setFactory, toString
-
Method Details
-
clear
public void clear()Description copied from interface:StatsEventHandlerDiscard all accumulated statistics.- Specified by:
clearin interfaceStatsEventHandler- Overrides:
clearin classStatsEventHandlerBase
-
recordDuration
protected void recordDuration(int id, long duration) - Specified by:
recordDurationin classStatsEventHandlerBase
-
notify
-