|Constructor and Description|
Builds an empty retry policy that does nothing (in case you set a session level one, but don't want to use it for a file)
|Modifier and Type||Method and Description|
Duplicates this retry policy, copying any needed values to the new AbstractRetryPolicy.
Runs this code when the page had an error.
getErrorChecksMap, getMaxRetryAttempts, getScriptContext, isError, resetReferrerBeforeRescrape, resetSessionVariablesBeforeRescrape, runOnAllAttemptsFailed, setMaxNumberOfRetries, setResetReferrerBeforeRescrape, setResetSessionVariablesBeforeRescrape, setScrapeableFile, setScrapingSession, setScriptContext, shouldLogErrors
public void runOnError() throws java.lang.Exception
java.lang.Exception- If something goes wrong while executing this method
public AbstractRetryPolicy duplicate()
Note that the copy can share internal references if necessary for the functionality of the policy. For example, if the policy is tracking total number of failures
it may have a shared
AtomicInteger reference for counting, which is passed in to the duplicate policy by reference. Therefore, duplicate isn't necessarily
an independent duplicate. It should be noted though that a "duplicate" copy of the policy is used for each scrapeable file when called