Class AbstractStatisticsAggregator

java.lang.Object
com.itextpdf.commons.actions.AbstractStatisticsAggregator
Direct Known Subclasses:
NumberOfPagesStatisticsAggregator, SizeOfPdfStatisticsAggregator

public abstract class AbstractStatisticsAggregator extends Object
Abstract class for statistics aggregation. Note that aggregator class must be thread safe.
  • Constructor Details

    • AbstractStatisticsAggregator

      public AbstractStatisticsAggregator()
  • Method Details

    • aggregate

      public abstract void aggregate (AbstractStatisticsEvent event)
      Aggregates data from the provided event.
      Parameters:
      event - AbstractStatisticsEvent instance
    • retrieveAggregation

      public abstract Object retrieveAggregation()
      Retrieves aggregated data.
      Returns:
      aggregated data as Object
    • merge

      public abstract void merge (AbstractStatisticsAggregator aggregator)
      Merges data from the provided aggregator into this aggregator.
      Parameters:
      aggregator - from which data will be taken.