Class Retries
java.lang.Object
io.github.flink.gcp.connector.base.retry.Retries
Support for the connectors' hand-written retry loops. The loops themselves stay in the
connectors: each pairs a
RetrySchedule with its own retryability classification and
per-site recovery actions, which is the part no shared executor replaces (issue #61 records the
survey).-
Method Summary
Modifier and TypeMethodDescriptionstatic voidSleeps for the given backoff, translating an interrupt into anIOExceptioncarrying the given message — the writers and committers run on threads Flink interrupts to cancel a task, and their contracts fail viaIOException.
-
Method Details
-
sleep
Sleeps for the given backoff, translating an interrupt into anIOExceptioncarrying the given message — the writers and committers run on threads Flink interrupts to cancel a task, and their contracts fail viaIOException. The interrupt flag is restored. A non-positive duration returns immediately.- Parameters:
millis- the sleep durationinterruptedMessage- the message of theIOExceptionthrown on interrupt; it should name what was being waited for- Throws:
IOException
-