Record Class TaskFailure
java.lang.Object
java.lang.Record
org.j7m.middleware.workload.api.TaskFailure
- Record Components:
code- middleware error codemessage- safe public messageretryable- whether policy may retry this failurefailedAt- failure instantmetadata- safe failure metadata
-
Constructor Summary
ConstructorsConstructorDescriptionTaskFailure(MiddlewareErrorCode code, String message, boolean retryable, Instant failedAt, Map<String, String> metadata) Creates immutable failure metadata. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.failedAt()Returns the value of thefailedAtrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.metadata()Returns the value of themetadatarecord component.booleanReturns the value of theretryablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskFailure
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
code
-
message
-
retryable
-
failedAt
-
metadata
-