Package com.intentsoftware.addapptr
Class BannerCacheConfiguration
-
- All Implemented Interfaces:
public final class BannerCacheConfigurationUsed to set up BannerCache.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringplacementNameprivate final Integersizeprivate BannerCache.CacheDelegatedelegateprivate BannerRequestrequestConfigurationprivate IntegerretryIntervalprivate final IntegerminDelayMillis
-
Constructor Summary
Constructors Constructor Description BannerCacheConfiguration(String placementName, Integer size)Creates the configuration object to be used when creating BannerCache BannerCacheConfiguration(String placementName)
-
Method Summary
Modifier and Type Method Description final StringgetPlacementName()final IntegergetSize()final BannerCache.CacheDelegategetDelegate()Sets optional cache delegate. final UnitsetDelegate(BannerCache.CacheDelegate delegate)Sets optional cache delegate. final BannerRequestgetRequestConfiguration()The configuration that will be used when requesting new banners. final UnitsetRequestConfiguration(BannerRequest requestConfiguration)The configuration that will be used when requesting new banners. final IntegergetRetryInterval()The failure retry interval in seconds final UnitsetRetryInterval(Integer retryInterval)The failure retry interval in seconds final IntegergetMinDelayMillis()final UnitsetShouldCacheAdditionalAdAtStart(Boolean shouldCacheAdditionalAdAtStart)Defines if the cache should load additional ad at the beginning. final UnitsetMinimumDelay(Integer minDelay)Sets the minimum delay between two banner consumptions. final BooleanshouldCacheAdditionalAdAtStart()StringtoString()-
-
Constructor Detail
-
BannerCacheConfiguration
BannerCacheConfiguration(String placementName, Integer size)
Creates the configuration object to be used when creating BannerCache- Parameters:
placementName- The name of the banner placement that will be created.size- Defines how many preloaded banners should be available in the cache.
-
BannerCacheConfiguration
BannerCacheConfiguration(String placementName)
-
-
Method Detail
-
getPlacementName
final String getPlacementName()
-
getDelegate
final BannerCache.CacheDelegate getDelegate()
Sets optional cache delegate.
-
setDelegate
final Unit setDelegate(BannerCache.CacheDelegate delegate)
Sets optional cache delegate.
-
getRequestConfiguration
final BannerRequest getRequestConfiguration()
The configuration that will be used when requesting new banners.
-
setRequestConfiguration
final Unit setRequestConfiguration(BannerRequest requestConfiguration)
The configuration that will be used when requesting new banners.
-
getRetryInterval
final Integer getRetryInterval()
The failure retry interval in seconds
-
setRetryInterval
final Unit setRetryInterval(Integer retryInterval)
The failure retry interval in seconds
-
getMinDelayMillis
final Integer getMinDelayMillis()
-
setShouldCacheAdditionalAdAtStart
final Unit setShouldCacheAdditionalAdAtStart(Boolean shouldCacheAdditionalAdAtStart)
Defines if the cache should load additional ad at the beginning.
- Parameters:
shouldCacheAdditionalAdAtStart- Boolean indicating if additional ad should be cached.
-
setMinimumDelay
final Unit setMinimumDelay(Integer minDelay)
Sets the minimum delay between two banner consumptions. 1s by default.
- Parameters:
minDelay- The minimum delay in seconds between two banner consumptions.
-
shouldCacheAdditionalAdAtStart
final Boolean shouldCacheAdditionalAdAtStart()
-
-
-
-