Interface ITrackingStatisticsResult


public interface ITrackingStatisticsResult
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addData(double quantity, String unitOfMeasure)
    Please note that quantity is automatically inverted if the event is a revert event.
    default void
    addData(double quantity, String unitOfMeasure, String reportName)
    Please note that quantity is automatically inverted if the event is a revert event.
    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.
    void
    addData(BigDecimal quantity, String unitOfMeasure)
    Please note that quantity is automatically inverted if the event is a revert event.
    void
    addData(BigDecimal quantity, String unitOfMeasure, String reportName)
    Please note that quantity is automatically inverted if the event is a revert event.
    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.
    void
    delay(String reason)
    Delay processing of this event.
  • Method Details

    • addData

      void addData(BigDecimal quantity, String unitOfMeasure)
      Please note that quantity is automatically inverted if the event is a revert event.
      Parameters:
      quantity - quantity to register
      unitOfMeasure - for example "products" or "pcs"
      See Also:
    • addData

      void addData(BigDecimal quantity, String unitOfMeasure, String reportName)
      Please note that quantity is automatically inverted if the event is a revert event.
      Parameters:
      quantity - quantity to register
      unitOfMeasure - 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 register
      unitOfMeasure - for example "products" or "pcs"
      reportName - Use this to differentiate between different reports
      consumer - consumer implementation for adding additional data
      See Also:
    • addData

      default void addData(double quantity, String unitOfMeasure)
      Please note that quantity is automatically inverted if the event is a revert event.
      Parameters:
      quantity - quantity to register
      unitOfMeasure - for example "products" or "pcs"
      See Also:
    • addData

      default void addData(double quantity, String unitOfMeasure, String reportName)
      Please note that quantity is automatically inverted if the event is a revert event.
      Parameters:
      quantity - quantity to register
      unitOfMeasure - 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 register
      unitOfMeasure - for example "products" or "pcs"
      reportName - Use this to differentiate between different reports
      consumer - consumer implementation for adding additional data
      See Also:
    • delay

      void delay(String reason)
      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