Record Class ContentTransformFailure
java.lang.Object
java.lang.Record
org.alfresco.elasticsearch.batchindexing.domain.transform.ContentTransformFailure
- Record Components:
failureType- short classifier suitable for the DLQfailureTypefield (e.g.TRANSFORM_HTTP_400); never nullfailureReason- human-readable reason (typically the response body or exception message); may be null when the HTTP layer didn't give one
Structured, non-retryable content-transform failure surfaced by
ContentTransformClient so the writer can hand it to the DLQ bridge without re-inspecting the underlying HTTP exception.-
Constructor Summary
ConstructorsConstructorDescriptionContentTransformFailure(String failureType, String failureReason) Creates an instance of aContentTransformFailurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureReasonrecord component.Returns the value of thefailureTyperecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContentTransformFailure
Creates an instance of aContentTransformFailurerecord class.- Parameters:
failureType- the value for thefailureTyperecord componentfailureReason- the value for thefailureReasonrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
failureType
Returns the value of thefailureTyperecord component.- Returns:
- the value of the
failureTyperecord component
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-