Package dev.comfast.cf.common.utils
Class EventStats<T>
java.lang.Object
dev.comfast.cf.common.utils.EventStats<T>
- All Implemented Interfaces:
dev.comfast.experimental.events.EventListener<T>
public class EventStats<T>
extends Object
implements dev.comfast.experimental.events.EventListener<T>
Measure all Events and able to print out statistics. Low cpu/memory overhead.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCollect times for statisticsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.comfast.experimental.events.EventListener
before, failed
-
Constructor Details
-
EventStats
-
-
Method Details
-
after
Collect times for statistics- Specified by:
afterin interfacedev.comfast.experimental.events.EventListener<T>
-
printStats
-