Package com.yahoo.docproc
Class DocumentProcessor.Progress
- java.lang.Object
-
- com.yahoo.docproc.DocumentProcessor.Progress
-
- Direct Known Subclasses:
DocumentProcessor.LaterProgress
- Enclosing class:
- DocumentProcessor
public static class DocumentProcessor.Progress extends java.lang.Object
An enumeration of possible results of calling a process method
-
-
Field Summary
Fields Modifier and Type Field Description static DocumentProcessor.Progress
DONE
Returned by a processor when it is done with a processingstatic DocumentProcessor.Progress
FAILED
Returned by a processor when a processing has failed and it should not be called again for this processing.static DocumentProcessor.Progress
LATER
Returned by a processor when it should be called again later for the same processingstatic DocumentProcessor.Progress
PERMANENT_FAILURE
Returned by a processor when processing has permanently failed, so that the document processing service should disable itself until reconfigured or restarted.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
java.util.Optional<java.lang.String>
getReason()
int
hashCode()
static DocumentProcessor.Progress
later(long delay)
java.lang.String
toString()
DocumentProcessor.Progress
withReason(java.lang.String reason)
-
-
-
Field Detail
-
DONE
public static final DocumentProcessor.Progress DONE
Returned by a processor when it is done with a processing
-
LATER
public static final DocumentProcessor.Progress LATER
Returned by a processor when it should be called again later for the same processing
-
FAILED
public static final DocumentProcessor.Progress FAILED
Returned by a processor when a processing has failed and it should not be called again for this processing.
-
PERMANENT_FAILURE
public static final DocumentProcessor.Progress PERMANENT_FAILURE
Returned by a processor when processing has permanently failed, so that the document processing service should disable itself until reconfigured or restarted.
-
-
Method Detail
-
later
public static DocumentProcessor.Progress later(long delay)
-
withReason
public DocumentProcessor.Progress withReason(java.lang.String reason)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getReason
public java.util.Optional<java.lang.String> getReason()
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-