Record Class JobExceptionHandlingStrategy.ExceptionHandlingContext
java.lang.Object
java.lang.Record
io.camunda.spring.client.jobhandling.JobExceptionHandlingStrategy.ExceptionHandlingContext
- Enclosing interface:
JobExceptionHandlingStrategy
public static record JobExceptionHandlingStrategy.ExceptionHandlingContext(JobClient jobClient, ActivatedJob job, JobWorkerValue jobWorkerValue)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExceptionHandlingContext(JobClient jobClient, ActivatedJob job, JobWorkerValue jobWorkerValue) Creates an instance of aExceptionHandlingContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.job()Returns the value of thejobrecord component.Returns the value of thejobClientrecord component.Returns the value of thejobWorkerValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExceptionHandlingContext
public ExceptionHandlingContext(JobClient jobClient, ActivatedJob job, JobWorkerValue jobWorkerValue) Creates an instance of aExceptionHandlingContextrecord class.- Parameters:
jobClient- the value for thejobClientrecord componentjob- the value for thejobrecord componentjobWorkerValue- the value for thejobWorkerValuerecord 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). -
jobClient
Returns the value of thejobClientrecord component.- Returns:
- the value of the
jobClientrecord component
-
job
Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-
jobWorkerValue
Returns the value of thejobWorkerValuerecord component.- Returns:
- the value of the
jobWorkerValuerecord component
-