mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-05 10:29:56 +08:00
34 lines
593 B
Java
34 lines
593 B
Java
|
|
/**
|
|||
|
|
* 抖音关注:程序员三丙
|
|||
|
|
* 知识星球:https://t.zsxq.com/j9b21
|
|||
|
|
*/
|
|||
|
|
package sanbing.jcpp.infrastructure.stats;
|
|||
|
|
|
|||
|
|
public interface MessagesStats {
|
|||
|
|
default void incrementTotal() {
|
|||
|
|
incrementTotal(1);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void incrementTotal(int amount);
|
|||
|
|
|
|||
|
|
default void incrementSuccessful() {
|
|||
|
|
incrementSuccessful(1);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void incrementSuccessful(int amount);
|
|||
|
|
|
|||
|
|
default void incrementFailed() {
|
|||
|
|
incrementFailed(1);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void incrementFailed(int amount);
|
|||
|
|
|
|||
|
|
int getTotal();
|
|||
|
|
|
|||
|
|
int getSuccessful();
|
|||
|
|
|
|||
|
|
int getFailed();
|
|||
|
|
|
|||
|
|
void reset();
|
|||
|
|
}
|