Class AdQualityBeaconExecutor
-
- All Implemented Interfaces:
public final class AdQualityBeaconExecutorThis class is responsible for picking up the queued results from the DB and hit the beacons with them.
Upon starting, the executor will go through the already queued results and hit all of them one by one. After the queue becomes empty, the executor will be suspended until a new result is pushed into queue.
This is also responsible for cleaning up everything after the beacon has been successfully hit
neelabh.parui
-
-
Field Summary
Fields Modifier and Type Field Description private final AdQualityDataListenerlistener
-
Constructor Summary
Constructors Constructor Description AdQualityBeaconExecutor()
-
Method Summary
Modifier and Type Method Description final AdQualityDataListenergetListener()final Unitstart()starts the AdQualityBeaconExecutor final JobexecuteAlreadyQueuedBeacons()final Unitcleanup(AdQualityResult result)final BooleanisSuspended()final UnitonAdConfigUpdate(AdConfig adConfig)final UnitsetListener(String beaconUrl, AdQualityListener listener)final BooleanisStarted()final UnitsetIsStarted(Boolean started)final UnitsetIsSuspended(Boolean started)-
-
Method Detail
-
getListener
final AdQualityDataListener getListener()
-
start
final Unit start()
starts the AdQualityBeaconExecutor
-
executeAlreadyQueuedBeacons
final Job executeAlreadyQueuedBeacons()
-
cleanup
final Unit cleanup(AdQualityResult result)
-
isSuspended
final Boolean isSuspended()
-
onAdConfigUpdate
final Unit onAdConfigUpdate(AdConfig adConfig)
-
setListener
final Unit setListener(String beaconUrl, AdQualityListener listener)
-
setIsStarted
final Unit setIsStarted(Boolean started)
-
setIsSuspended
final Unit setIsSuspended(Boolean started)
-
-
-
-