Record Class TaskExecutionOutcome
java.lang.Object
java.lang.Record
org.springframework.scheduling.config.TaskExecutionOutcome
- Record Components:
executionTime- the instant when the task execution started, ornullif the task has not startedstatus- theTaskExecutionOutcome.Statusof the execution outcomethrowable- the exception thrown from the task execution, if any
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStatus of the task execution outcome. -
Constructor Summary
ConstructorsConstructorDescriptionTaskExecutionOutcome(@Nullable Instant executionTime, TaskExecutionOutcome.Status status, @Nullable Throwable throwable) Creates an instance of aTaskExecutionOutcomerecord class. -
Method Summary
Modifier 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
-
TaskExecutionOutcome
public TaskExecutionOutcome(@Nullable Instant executionTime, TaskExecutionOutcome.Status status, @Nullable Throwable throwable) Creates an instance of aTaskExecutionOutcomerecord class.- Parameters:
executionTime- the value for theexecutionTimerecord componentstatus- the value for thestatusrecord componentthrowable- the value for thethrowablerecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
executionTime
Returns the value of theexecutionTimerecord component.- Returns:
- the value of the
executionTimerecord component
-
status
-
throwable
-