Enum Class SpoiledReferenceStrategy
java.lang.Object
java.lang.Enum<SpoiledReferenceStrategy>
com.norconex.crawler.core.doc.operations.spoil.SpoiledReferenceStrategy
- All Implemented Interfaces:
Serializable,Comparable<SpoiledReferenceStrategy>,Constable
Markers indicating what to do with references that were once processed
properly, but failed to get a good processing state a subsequent time around.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeleting spoiled references sends them to the Committer for deletions and they are removed from the internal reference cache.Gracing spoiled references gives them one chance (and only one) to recover by not sending a deletion request to the Committer the first time, but doing so if the reference is still spoiled on the next crawl.Ignoring spoiled references does not send a deletion request to the Committer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpoiledReferenceStrategyReturns the enum constant of this class with the specified name.static SpoiledReferenceStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DELETE
Deleting spoiled references sends them to the Committer for deletions and they are removed from the internal reference cache. -
GRACE_ONCE
Gracing spoiled references gives them one chance (and only one) to recover by not sending a deletion request to the Committer the first time, but doing so if the reference is still spoiled on the next crawl. -
IGNORE
Ignoring spoiled references does not send a deletion request to the Committer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-