LoadErrorHandlingPolicy.FallbackSelection


class LoadErrorHandlingPolicy.FallbackSelection


A selected fallback option.

Summary

Public constructors

FallbackSelection(
    @LoadErrorHandlingPolicy.FallbackType type: Int,
    exclusionDurationMs: Long
)

Creates an instance.

Public properties

Long

The duration for which the failing resource should be excluded, in milliseconds.

Int

The type of fallback.

Public constructors

FallbackSelection

FallbackSelection(
    @LoadErrorHandlingPolicy.FallbackType type: Int,
    exclusionDurationMs: Long
)

Creates an instance.

Parameters
@LoadErrorHandlingPolicy.FallbackType type: Int

The type of fallback.

exclusionDurationMs: Long

The duration for which the failing resource should be excluded, in milliseconds. Must be non-negative.

Public properties

exclusionDurationMs

val exclusionDurationMsLong

The duration for which the failing resource should be excluded, in milliseconds.

type

@LoadErrorHandlingPolicy.FallbackType
val typeInt

The type of fallback.