Package com.pubmatic.sdk.common.cache
Object POBPublisherConfigLoader
-
- All Implemented Interfaces:
public class POBPublisherConfigLoaderIssues the publisher-config CDN request and maps the outcome to a POBPublisherConfig.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePOBPublisherConfigLoader.PublisherConfigLoadCallbackDelivers the config if available, default POBPublisherConfig if not found or null otherwise.
-
Field Summary
Fields Modifier and Type Field Description public final static POBPublisherConfigLoaderINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitfetch(Context context, POBNetworkHandler networkHandler, String publisherId, POBPublisherConfigLoader.PublisherConfigLoadCallback callback)Loads publisher config when online. -
-
Method Detail
-
fetch
final static Unit fetch(Context context, POBNetworkHandler networkHandler, String publisherId, POBPublisherConfigLoader.PublisherConfigLoadCallback callback)
Loads publisher config when online. HTTP 404 delivers a default POBPublisherConfig. Other failures deliver null so the cache manager can retry later. Skips entirely (no callback) if a fetch is already in flight. callback is invoked at most once when this method starts a new load.
-
-
-
-