Class SimpleStatisticsCollector

    • Constructor Detail

      • SimpleStatisticsCollector

        public SimpleStatisticsCollector()
    • Method Detail

      • incrementLoadCount

        public <K> long incrementLoadCount​(IncrementLoadCountStatisticsContext<K> context)
        Description copied from interface: StatisticsCollector
        Called to increment the number of loads
        Specified by:
        incrementLoadCount in interface StatisticsCollector
        Type Parameters:
        K - the class of the key in the data loader
        Parameters:
        context - the context containing metadata of the data loader invocation
        Returns:
        the current value after increment
      • incrementLoadCount

        @Deprecated
        public long incrementLoadCount()
        Deprecated.
        Description copied from interface: StatisticsCollector
        Called to increment the number of loads
        Specified by:
        incrementLoadCount in interface StatisticsCollector
        Returns:
        the current value after increment
      • incrementLoadErrorCount

        public <K> long incrementLoadErrorCount​(IncrementLoadErrorCountStatisticsContext<K> context)
        Description copied from interface: StatisticsCollector
        Called to increment the number of loads that resulted in an object deemed in error
        Specified by:
        incrementLoadErrorCount in interface StatisticsCollector
        Type Parameters:
        K - the class of the key in the data loader
        Parameters:
        context - the context containing metadata of the data loader invocation
        Returns:
        the current value after increment
      • incrementLoadErrorCount

        @Deprecated
        public long incrementLoadErrorCount()
        Deprecated.
        Description copied from interface: StatisticsCollector
        Called to increment the number of loads that resulted in an object deemed in error
        Specified by:
        incrementLoadErrorCount in interface StatisticsCollector
        Returns:
        the current value after increment
      • incrementBatchLoadCountBy

        public <K> long incrementBatchLoadCountBy​(long delta,
                                                  IncrementBatchLoadCountByStatisticsContext<K> context)
        Description copied from interface: StatisticsCollector
        Called to increment the number of batch loads
        Specified by:
        incrementBatchLoadCountBy in interface StatisticsCollector
        Type Parameters:
        K - the class of the key in the data loader
        Parameters:
        delta - how much to add to the count
        context - the context containing metadata of the data loader invocation
        Returns:
        the current value after increment
      • incrementBatchLoadCountBy

        @Deprecated
        public long incrementBatchLoadCountBy​(long delta)
        Deprecated.
        Description copied from interface: StatisticsCollector
        Called to increment the number of batch loads
        Specified by:
        incrementBatchLoadCountBy in interface StatisticsCollector
        Parameters:
        delta - how much to add to the count
        Returns:
        the current value after increment
      • incrementCacheHitCount

        @Deprecated
        public long incrementCacheHitCount()
        Deprecated.
        Description copied from interface: StatisticsCollector
        Called to increment the number of cache hits
        Specified by:
        incrementCacheHitCount in interface StatisticsCollector
        Returns:
        the current value after increment
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object