MovaAdRetrySkip class

Retries up to maxRetries times, then skips the break and carries on.

The default, with maxRetries zero. Retrying a broken ad URL costs the viewer a second stall for something they did not ask to watch, so the out-of-the-box answer is "the viewer's time wins": drop that one creative, keep the rest of the pod. Hosts who own make-good obligations raise maxRetries deliberately.

最多重试 maxRetries 次,之后跳过该广告位继续。

默认策略,maxRetries 为 0。对一个坏掉的广告地址重试,代价是让观众为一个 他本来就没想看的东西再卡一次,因此开箱默认是"观众的时间优先":丢掉这一条 素材,保留 pod 的其余部分。有补播义务的宿主可以自行调高 maxRetries。

Implemented types

Constructors

MovaAdRetrySkip({int maxRetries = 0})
Creates a retry-then-skip policy.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxRetries → int
How many retries one break is worth before it is dropped.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFailure(MovaAdFail failure) → MovaAdFailAction
Returns the action to take for failure.
override
toString() → String
A string representation of this object.
inherited

Operators

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