public class SdkCache
extends java.lang.Object
| Constructor and Description |
|---|
SdkCache(DeviceUtil deviceUtil) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.criteo.publisher.model.CdbResponseSlot slot) |
com.criteo.publisher.model.CacheAdUnit |
detectCacheAdUnit(com.criteo.publisher.model.CdbResponseSlot slot) |
com.criteo.publisher.model.CdbResponseSlot |
peekAdUnit(com.criteo.publisher.model.CacheAdUnit key)
Get the slot corresponding to the given key.
|
void |
put(com.criteo.publisher.model.CacheAdUnit cacheAdUnit,
com.criteo.publisher.model.CdbResponseSlot slot) |
void |
remove(com.criteo.publisher.model.CacheAdUnit key) |
public SdkCache(@NonNull
DeviceUtil deviceUtil)
public void add(@NonNull
com.criteo.publisher.model.CdbResponseSlot slot)
@Nullable
public com.criteo.publisher.model.CacheAdUnit detectCacheAdUnit(@NonNull
com.criteo.publisher.model.CdbResponseSlot slot)
@Nullable public com.criteo.publisher.model.CdbResponseSlot peekAdUnit(com.criteo.publisher.model.CacheAdUnit key)
If no slot match the given key, then null is returned.
key - of the slot to look forpublic void remove(com.criteo.publisher.model.CacheAdUnit key)
public void put(@NonNull
com.criteo.publisher.model.CacheAdUnit cacheAdUnit,
@Nullable
com.criteo.publisher.model.CdbResponseSlot slot)