apache/dubbo

TimeCounterEvent optimization

Aperta

#13.097 aperta il 21 set 2023

 (0 commenti) (0 reazioni) (0 assegnatari)Java (26.453 fork)batch import
component/sdkhelp wantedtype/proposal

Metriche repository

Star
 (41.524 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

TimeCounterEvent in the Metrics module is now an abstract class, and events inherit from it to have the ability to calculate rt. Inheritance mechanism brings inflexibility and sometimes we have to inherit it in event generics. We can use composition pattern instead of inheritance

Guida contributor