ReadAgain

class ReadAgain(val maxRestarts: Int) : LinkLossPolicy

Start the whole read again, from the beginning, when the document is found again; at most maxRestarts times. Everything from the earlier attempt is dropped, so the result always comes from one uninterrupted chip session.

Choose it when each result must come from a single session; it re-reads every file, so it takes longer than Resume after a loss during a large file.

Since

1.0.0

Throws

when maxRestarts is outside 1 to 3.

Constructors

Link copied to clipboard
constructor(maxRestarts: Int)

Properties

Link copied to clipboard
open override val maxRestarts: Int

How many times the read may start again: 1 to 3.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Equal when maxRestarts is equal.

Link copied to clipboard
open override fun hashCode(): Int

A hash of maxRestarts.

Link copied to clipboard
open override fun toString(): String

ReadAgain( the restarts ).