Class CustomerSyncStatistics

    • Constructor Detail

      • CustomerSyncStatistics

        public CustomerSyncStatistics()
    • Method Detail

      • getReportMessage

        public java.lang.String getReportMessage()
        Builds a summary of the customer sync statistics instance that looks like the following example:

        "Summary: 2 customers have been processed in total (0 created, 0 updated and 0 failed to sync)."

        Specified by:
        getReportMessage in class BaseSyncStatistics<CustomerSyncStatistics>
        Returns:
        a summary message of the customer sync statistics instance.
      • getThis

        protected CustomerSyncStatistics getThis()
        Description copied from class: BaseSyncStatistics
        Returns this instance of T, which extends BaseSyncStatistics. The purpose of this method is to make sure that this is an instance of a class which extends BaseSyncStatistics in order to be used in the generic methods of the class. Otherwise, without this method, the methods above would need to cast this to T which could lead to a runtime error of the class was extended in a wrong way.
        Specified by:
        getThis in class BaseSyncStatistics<CustomerSyncStatistics>
        Returns:
        an instance of the class that overrides this method.