File tree 2 files changed +18
-8
lines changed
spring-context/src/main/java/org/springframework/scheduling/config
spring-test/src/main/java/org/springframework/test/web/reactive/server
2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 23
23
24
24
/**
25
25
* Outcome of a {@link Task} execution.
26
- * @param executionTime the instant when the task execution started, {@code null} if the task has not started.
27
- * @param status the {@link Status} of the execution outcome.
28
- * @param throwable the exception thrown from the task execution, if any.
26
+ *
29
27
* @author Brian Clozel
30
28
* @since 6.2
29
+ * @param executionTime the instant when the task execution started, or
30
+ * {@code null} if the task has not started
31
+ * @param status the {@link Status} of the execution outcome
32
+ * @param throwable the exception thrown from the task execution, if any
31
33
*/
32
34
public record TaskExecutionOutcome (@ Nullable Instant executionTime , Status status , @ Nullable Throwable throwable ) {
33
35
@@ -54,21 +56,27 @@ static TaskExecutionOutcome create() {
54
56
* Status of the task execution outcome.
55
57
*/
56
58
public enum Status {
59
+
57
60
/**
58
61
* The task has not been executed so far.
59
62
*/
60
63
NONE ,
64
+
61
65
/**
62
66
* The task execution has been started and is ongoing.
63
67
*/
64
68
STARTED ,
69
+
65
70
/**
66
71
* The task execution finished successfully.
67
72
*/
68
73
SUCCESS ,
74
+
69
75
/**
70
76
* The task execution finished with an error.
71
77
*/
72
78
ERROR
79
+
73
80
}
81
+
74
82
}
Original file line number Diff line number Diff line change 31
31
import org .springframework .lang .Nullable ;
32
32
33
33
/**
34
- * {@link Encoder} and {@link Decoder} that is able to handle a map to and from
35
- * JSON. Used to configure the jsonpath infrastructure without having a hard
34
+ * {@link Encoder} and {@link Decoder} that is able to encode and decode
35
+ * a {@link Map} to and from JSON.
36
+ *
37
+ * <p>Used to configure the jsonpath infrastructure without having a hard
36
38
* dependency on the library.
37
39
*
38
- * @param encoder the JSON encoder
39
- * @param decoder the JSON decoder
40
40
* @author Stephane Nicoll
41
41
* @author Rossen Stoyanchev
42
42
* @since 6.2
43
+ * @param encoder the JSON encoder
44
+ * @param decoder the JSON decoder
43
45
*/
44
46
record JsonEncoderDecoder (Encoder <?> encoder , Decoder <?> decoder ) {
45
47
@@ -89,7 +91,7 @@ private static Encoder<?> findJsonEncoder(Stream<Encoder<?>> stream) {
89
91
}
90
92
91
93
/**
92
- * Find the first suitable {@link Decoder} that can decode a {@link Map} to
94
+ * Find the first suitable {@link Decoder} that can decode a {@link Map} from
93
95
* JSON.
94
96
* @param readers the readers to inspect
95
97
* @return a suitable JSON {@link Decoder} or {@code null}
You can’t perform that action at this time.
0 commit comments