public static enum WebCrawlerConstants.ErrorHandling extends java.lang.Enum<WebCrawlerConstants.ErrorHandling>
| Enum Constant and Description |
|---|
DROP
drop record.
|
IGNORE
ignore errors during content fetching and keep record metadata.
|
RETRY
finish task as recoverable so that it can be retried.
|
| Modifier and Type | Method and Description |
|---|---|
static WebCrawlerConstants.ErrorHandling |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WebCrawlerConstants.ErrorHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebCrawlerConstants.ErrorHandling RETRY
public static final WebCrawlerConstants.ErrorHandling DROP
public static final WebCrawlerConstants.ErrorHandling IGNORE
public static WebCrawlerConstants.ErrorHandling[] values()
for (WebCrawlerConstants.ErrorHandling c : WebCrawlerConstants.ErrorHandling.values()) System.out.println(c);
public static WebCrawlerConstants.ErrorHandling valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null