Package com.inmobi.media.pingsv2
Class PingManager
-
- All Implemented Interfaces:
-
com.inmobi.media.pingsv2.strategy.PingResolutionStrategy.PingResolutionListener
public final class PingManager implements PingResolutionStrategy.PingResolutionListener
PingManager is responsible for managing the lifecycle of pings, including sending them, handling acknowledgments, and processing ping resolution strategies.
It listens for ping resolution events and processes incoming ping data in JSON format. It also handles errors and telemetry reporting related to ping processing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePingManager.PingAckListener
-
Constructor Summary
Constructors Constructor Description PingManager(PingManager.PingAckListener pingAckListener, RenderViewTelemetryManager renderViewTelemetryManager)
-
Method Summary
Modifier and Type Method Description final Unitping(String json)Processes incoming ping data in JSON format. final Unitdestroy()UnitonPingResolved(Ping ping, Integer statusCode, Long timestamp)UnitonPingResolutionFailed(Ping ping, Integer statusCode, String error, Integer retryCount, Long timestamp, Short errorCode)-
-
Constructor Detail
-
PingManager
PingManager(PingManager.PingAckListener pingAckListener, RenderViewTelemetryManager renderViewTelemetryManager)
-
-
Method Detail
-
ping
final Unit ping(String json)
Processes incoming ping data in JSON format.
It parses the JSON, validates URLs, and routes pings to the appropriate resolution strategy based on their priority.
- Parameters:
json- The JSON string containing ping data.
-
onPingResolved
Unit onPingResolved(Ping ping, Integer statusCode, Long timestamp)
-
-
-
-