Package com.persequor.statistics
Interface ITrackingStatisticsResult
public interface ITrackingStatisticsResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidPlease note that quantity is automatically inverted if the event is a revert event.default voidPlease note that quantity is automatically inverted if the event is a revert event.default voidaddData(double quantity, String unitOfMeasure, String reportName, Consumer<ITrackingStatistics> consumer) Please note that quantity is automatically inverted if the event is a revert event.voidaddData(BigDecimal quantity, String unitOfMeasure) Please note that quantity is automatically inverted if the event is a revert event.voidaddData(BigDecimal quantity, String unitOfMeasure, String reportName) Please note that quantity is automatically inverted if the event is a revert event.voidaddData(BigDecimal quantity, String unitOfMeasure, String reportName, Consumer<ITrackingStatistics> consumer) Please note that quantity is automatically inverted if the event is a revert event.voidDelay processing of this event.
-
Method Details
-
addData
Please note that quantity is automatically inverted if the event is a revert event.- Parameters:
quantity- quantity to registerunitOfMeasure- for example "products" or "pcs"- See Also:
-
addData
Please note that quantity is automatically inverted if the event is a revert event.- Parameters:
quantity- quantity to registerunitOfMeasure- for example "products" or "pcs"reportName- Use this to differentiate between different reports- See Also:
-
addData
void addData(BigDecimal quantity, String unitOfMeasure, String reportName, Consumer<ITrackingStatistics> consumer) Please note that quantity is automatically inverted if the event is a revert event.- Parameters:
quantity- quantity to registerunitOfMeasure- for example "products" or "pcs"reportName- Use this to differentiate between different reportsconsumer- consumer implementation for adding additional data- See Also:
-
addData
Please note that quantity is automatically inverted if the event is a revert event.- Parameters:
quantity- quantity to registerunitOfMeasure- for example "products" or "pcs"- See Also:
-
addData
Please note that quantity is automatically inverted if the event is a revert event.- Parameters:
quantity- quantity to registerunitOfMeasure- for example "products" or "pcs"reportName- Use this to differentiate between different reports- See Also:
-
addData
default void addData(double quantity, String unitOfMeasure, String reportName, Consumer<ITrackingStatistics> consumer) Please note that quantity is automatically inverted if the event is a revert event.- Parameters:
quantity- quantity to registerunitOfMeasure- for example "products" or "pcs"reportName- Use this to differentiate between different reportsconsumer- consumer implementation for adding additional data- See Also:
-
delay
Delay processing of this event. On first delay it is delayed for 1 second. On the second delay 1 minute. And then 5 minutes, 10 minutes and in the end 1 hour. A subsequent call to delay will cause the even to be put to Issues storage- Parameters:
reason- message to be shown in the ui
-