public final class EmptyRetryPolicy extends AbstractRetryPolicy
errorOutputMap, maxNumberOfRetries, resetReferrerBeforeRescrape, resetSessionVariablesBeforeRescrape, scrapingSession, scriptContext, theScrapeableFile| Constructor and Description |
|---|
EmptyRetryPolicy()
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 |
|---|---|
AbstractRetryPolicy |
duplicate()
Duplicates this retry policy, copying any needed values to the new AbstractRetryPolicy.
|
void |
runOnError()
Runs this code when the page had an error.
|
getErrorChecksMap, getMaxRetryAttempts, getScriptContext, isError, resetReferrerBeforeRescrape, resetSessionVariablesBeforeRescrape, runOnAllAttemptsFailed, setMaxNumberOfRetries, setResetReferrerBeforeRescrape, setResetSessionVariablesBeforeRescrape, setScrapeableFile, setScrapingSession, setScriptContext, shouldLogErrorspublic EmptyRetryPolicy()
public void runOnError()
throws java.lang.Exception
RetryPolicyjava.lang.Exception - If something goes wrong while executing this methodpublic AbstractRetryPolicy duplicate()
AbstractRetryPolicy
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
duplicate in class AbstractRetryPolicy