FrequencyGate class final

Drops a campaign the frequency manager has capped.

Skipped for a driver whose policy says it never respects caps (a live test), and for inline and unsupported campaigns, which the cap applies to no more than it did before routing was a list of gates.

Inheritance

Constructors

FrequencyGate(FrequencySkipReason? _capReason(CampaignModel campaign))
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(CampaignRequest request) → RoutingDropped?
The drop this gate decides, or null to let the request continue.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited