Interface AssetPerformanceTracker


public interface AssetPerformanceTracker
The AssetPerformanceTracker interface provides the methods for reading and setting the asset performance record.
  • Method Details

    • getAssetImpressionCount

      long getAssetImpressionCount(Asset asset)
      Gets the asset impression count for the asset.
      Parameters:
      asset - the assets whose impression count is to be found
      Returns:
      the asset impression count for the asset
    • getAssetClickCount

      long getAssetClickCount(Asset asset)
      Gets the asset click count for the asset.
      Parameters:
      asset - the assets whose click count is to be found
      Returns:
      the asset click count for the asset
    • setAssetClick

      void setAssetClick(Asset asset, Long count) throws PersistenceException
      Sets the asset click count for the asset.
      Parameters:
      asset - the assets whose click count is to be set
      count - the click count to be set
      Throws:
      PersistenceException - thrown in case of error while setting the asset click count
    • setAssetImpression

      void setAssetImpression(Asset asset, Long count) throws PersistenceException
      Sets the asset impression count for the asset.
      Parameters:
      asset - the assets whose impression count is to be set
      count - the impression count to be set
      Throws:
      PersistenceException - thrown in case of error while setting the asset impression count
    • setAssetPerformance

      void setAssetPerformance(Asset asset, Long impressionCount, Long clickCount) throws PersistenceException
      Sets the asset click and impression count for the asset.
      Parameters:
      asset - the assets whose click and impression count is to be set
      impressionCount - the impression count to be set
      clickCount - the click count to be set
      Throws:
      PersistenceException - thrown in case of error while setting the asset click or impression count