LoadErrorHandlingPolicy.FallbackSelection


public final class LoadErrorHandlingPolicy.FallbackSelection


A selected fallback option.

Summary

Public fields

final long

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

final int

The type of fallback.

Public constructors

FallbackSelection(
    @LoadErrorHandlingPolicy.FallbackType int type,
    long exclusionDurationMs
)

Creates an instance.

Public fields

exclusionDurationMs

public final long exclusionDurationMs

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

type

@LoadErrorHandlingPolicy.FallbackType
public final int type

The type of fallback.

Public constructors

FallbackSelection

public FallbackSelection(
    @LoadErrorHandlingPolicy.FallbackType int type,
    long exclusionDurationMs
)

Creates an instance.

Parameters
@LoadErrorHandlingPolicy.FallbackType int type

The type of fallback.

long exclusionDurationMs

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