Class LoadAdUnitTimeoutManager
-
- All Implemented Interfaces:
public final class LoadAdUnitTimeoutManager extends AdUnitTimeoutManager
Manages load-specific timeouts for an ad unit.
This class extends AdUnitTimeoutManager to implement timeout logic specifically for the ad loading phase. It starts a timeout timer when ad fetching or load response processing begins. If the ad load does not complete successfully within the configured
loadTimeout(obtained frommediationSpecificConfig), it triggers an internal load timeout event on the provided stateMachine.The timeout is cancelled if the ad load is successful or if the manager is destroyed.
-
-
Field Summary
Fields Modifier and Type Field Description private final AdManagerComponentadManagerComponentprivate final AUMStateMachinestateMachine
-
Constructor Summary
Constructors Constructor Description LoadAdUnitTimeoutManager(AdManagerComponent adManagerComponent, AUMStateMachine stateMachine)
-
Method Summary
Modifier and Type Method Description final AdManagerComponentgetAdManagerComponent()The AdManagerComponent providing access to context, configuration, and a coroutine scope. final AUMStateMachinegetStateMachine()The AUMStateMachine (Ad Unit Manager State Machine) to notify in case of a load timeout. UnitonAdFetchStarted()UnitonLoadResponseStarted()UnitonLoadSuccessful()Unitdestroy()-
-
Constructor Detail
-
LoadAdUnitTimeoutManager
LoadAdUnitTimeoutManager(AdManagerComponent adManagerComponent, AUMStateMachine stateMachine)
-
-
Method Detail
-
getAdManagerComponent
final AdManagerComponent getAdManagerComponent()
The AdManagerComponent providing access to context, configuration, and a coroutine scope.
-
getStateMachine
final AUMStateMachine getStateMachine()
The AUMStateMachine (Ad Unit Manager State Machine) to notify in case of a load timeout.
-
onAdFetchStarted
Unit onAdFetchStarted()
-
onLoadResponseStarted
Unit onLoadResponseStarted()
-
onLoadSuccessful
Unit onLoadSuccessful()
-
-
-
-