Record Class TaskExecutionOutcome
java.lang.Object
java.lang.Record
org.springframework.scheduling.config.TaskExecutionOutcome
- Record Components:
- executionTime- the instant when the task execution started, or- nullif the task has not started
- status- the- TaskExecutionOutcome.Statusof the execution outcome
- throwable- the exception thrown from the task execution, if any
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumStatus of the task execution outcome.
- 
Constructor SummaryConstructorsConstructorDescriptionTaskExecutionOutcome(@Nullable Instant executionTime, TaskExecutionOutcome.Status status, @Nullable Throwable throwable) Creates an instance of aTaskExecutionOutcomerecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionTimerecord component.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.Returns the value of thethrowablerecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
TaskExecutionOutcomepublic TaskExecutionOutcome(@Nullable Instant executionTime, TaskExecutionOutcome.Status status, @Nullable Throwable throwable) Creates an instance of aTaskExecutionOutcomerecord class.- Parameters:
- executionTime- the value for the- executionTimerecord component
- status- the value for the- statusrecord component
- throwable- the value for the- throwablerecord component
 
 
- 
- 
Method Details- 
toString
- 
hashCode
- 
equalsIndicates 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).
- 
executionTimeReturns the value of theexecutionTimerecord component.- Returns:
- the value of the executionTimerecord component
 
- 
status
- 
throwable
 
-