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

public enum SpoiledReferenceStrategy extends Enum<SpoiledReferenceStrategy>
Markers indicating what to do with references that were once processed properly, but failed to get a good processing state a subsequent time around.
  • Enum Constant Details

    • DELETE

      public static final SpoiledReferenceStrategy DELETE
      Deleting spoiled references sends them to the Committer for deletions and they are removed from the internal reference cache.
    • GRACE_ONCE

      public static final SpoiledReferenceStrategy 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

      public static final SpoiledReferenceStrategy IGNORE
      Ignoring spoiled references does not send a deletion request to the Committer.
  • Method Details

    • values

      public static SpoiledReferenceStrategy[] 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

      public static SpoiledReferenceStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null