Verified Owner
Top Inners Fields Constructors Methods
org.jabref.logic.importer

pack-priv final Class FetcherRetry

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.time.Duration, org.jspecify.annotations.NullMarked, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface
pack-priv static interface

Field Summary

Modifier and TypeField and Description
pack-priv static final int
private static final Duration
private static final Logger
pack-priv static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> T
pack-priv static <T> T
private static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HTTP_TOO_MANY_REQUESTSback to summary
pack-priv static final int HTTP_TOO_MANY_REQUESTS
INITIAL_BACKOFFback to summary
private static final Duration INITIAL_BACKOFF
LOGGERback to summary
private static final Logger LOGGER
MAX_RATE_LIMIT_RETRIESback to summary
pack-priv static final int MAX_RATE_LIMIT_RETRIES

Constructor Detail

FetcherRetryback to summary
private FetcherRetry()

Method Detail

executeWithRateLimitRetryback to summary
pack-priv static <T> T executeWithRateLimitRetry(FetcherRetry.FetcherOperation<T> operation) throws FetcherException
executeWithRateLimitRetryback to summary
pack-priv static <T> T executeWithRateLimitRetry(FetcherRetry.FetcherOperation<T> operation, FetcherRetry.Backoff backoff) throws FetcherException
isRateLimitedback to summary
private static boolean isRateLimited(FetcherClientException exception)
org.jabref.logic.importer back to summary

pack-priv Interface FetcherRetry.Backoff

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

waitForback to summary
public void waitFor(Duration delay) throws InterruptedException
org.jabref.logic.importer back to summary

pack-priv Interface FetcherRetry.FetcherOperation<T>

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public T

Method Detail

executeback to summary
public T execute() throws FetcherException