Summary: Ctors | Methods | Inherited Methods
public
static
final
class
KeyedFrequencyCap.Builder
extends Object
Builder for creating KeyedFrequencyCap objects.
Summary
Public constructors | |
|---|---|
Builder(int adCounterKey, int maxCount, Duration interval)
|
|
Public methods | |
|---|---|
KeyedFrequencyCap
|
build()
Builds and returns a |
KeyedFrequencyCap.Builder
|
setAdCounterKey(int adCounterKey)
Sets the ad counter key the frequency cap applies to. |
KeyedFrequencyCap.Builder
|
setInterval(Duration interval)
Sets the interval, as a |
KeyedFrequencyCap.Builder
|
setMaxCount(int maxCount)
Sets the maximum count within the time interval for the frequency cap. |
Inherited methods | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
| |||||||||||||||||||||||
Public constructors
Builder
public Builder (int adCounterKey,
int maxCount,
Duration interval)
| Parameters | |
|---|---|
adCounterKey |
int |
maxCount |
int |
interval |
Duration: This value cannot be null. |