Enum Class DeadLetterDocument.FailureStage

java.lang.Object
java.lang.Enum<DeadLetterDocument.FailureStage>
org.alfresco.elasticsearch.batchindexing.model.DeadLetterDocument.FailureStage
All Implemented Interfaces:
Serializable, Comparable<DeadLetterDocument.FailureStage>, Constable
Enclosing class:
DeadLetterDocument

public static enum DeadLetterDocument.FailureStage extends Enum<DeadLetterDocument.FailureStage>
Stage of the pipeline that produced the skip event.
  • Enum Constant Details

    • READER

      public static final DeadLetterDocument.FailureStage READER
      Reader-side failure. Item never materialised — the whole page failed before a row could be mapped. Produced by DlqPageReadFailureListener, wired from reindexing's AbstractAlfrescoNodeReader when a JDBC page throws (e.g. malformed row); the record is keyed by the failed time window (id shape window:<tsFrom>-<tsTo>) and carries a null dbId. Not produced through Spring Batch's SkipListener#onSkipInRead: the paging reader would re-read the same failed page indefinitely rather than advance.
    • PROCESSOR

      public static final DeadLetterDocument.FailureStage PROCESSOR
      SkipListener.onSkipInProcess(T, java.lang.Throwable). Item is the reader's output.
    • METADATA_WRITER

      public static final DeadLetterDocument.FailureStage METADATA_WRITER
      SkipListener.onSkipInWrite(S, java.lang.Throwable). Item is the processor's output. Sub-writer is not distinguished because the composite writer swallows that context. Covers the metadata bulk writer's per-item failures too.
    • PATH_WRITER

      public static final DeadLetterDocument.FailureStage PATH_WRITER
      Emitted directly by ElasticsearchPathWriter after its internal retry loop; never fires through Spring Batch skip. Reserved for PathBulkItemFailureListener bridges.
    • CONTENT_WRITER

      public static final DeadLetterDocument.FailureStage CONTENT_WRITER
      Emitted directly by ContentTransformDirectWriter when the ACS transform endpoint returns a non-retryable error (e.g. 4xx). Never fires through Spring Batch skip; the writer swallows the failure by design and this stage is populated by the ContentTransformFailureListener bridge.
  • Method Details

    • values

      public static DeadLetterDocument.FailureStage[] 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 DeadLetterDocument.FailureStage 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