Class BidResponseCache

java.lang.Object
org.prebid.mobile.rendering.bidding.display.BidResponseCache

public class BidResponseCache extends Object
Holds BidResponses in memory until they are used
  • Method Details

    • getInstance

      public static BidResponseCache getInstance()
    • putBidResponse

      public void putBidResponse(BidResponse response)
      Stores the { BidResponse} in the cache. This BidResponse will live until it is retrieved via { #popBidResponse(String)}
      Parameters:
      response - Parsed bid response
    • putBidResponse

      public void putBidResponse(String key, BidResponse response)
      Stores the { BidResponse} in the cache. This BidResponse will live until it is retrieved via { #popBidResponse(String)}
      Parameters:
      key - Custom key to store response
      response - Parsed bid response
    • popBidResponse

      public BidResponse popBidResponse(String responseId)
    • getKeywords

      public HashMap<String,String> getKeywords(String responseId)