Class BidResponseCache
- java.lang.Object
-
- org.prebid.mobile.rendering.bidding.display.BidResponseCache
-
public class BidResponseCache extends java.lang.ObjectHolds BidResponses in memory until they are used
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BidResponseCachegetInstance()java.util.HashMap<java.lang.String,java.lang.String>getKeywords(java.lang.String responseId)BidResponsepopBidResponse(java.lang.String responseId)voidputBidResponse(java.lang.String key, BidResponse response)Stores the { BidResponse} in the cache.voidputBidResponse(BidResponse response)Stores the { BidResponse} in the cache.
-
-
-
Method Detail
-
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(java.lang.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 responseresponse- Parsed bid response
-
popBidResponse
public BidResponse popBidResponse(java.lang.String responseId)
-
getKeywords
public java.util.HashMap<java.lang.String,java.lang.String> getKeywords(java.lang.String responseId)
-
-