File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
spring-batch-infrastructure/src/main/java/org/springframework/batch/item/support Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ public void update(ExecutionContext executionContext) throws ItemStreamException
79
79
}
80
80
}
81
81
82
+ /**
83
+ * Close all delegates.
84
+ * @throws ItemStreamException thrown if one of the delegates fails to close. Original
85
+ * exceptions thrown by delegates are added as suppressed exceptions into this one, in
86
+ * the same order as delegates were registered.
87
+ */
82
88
@ Override
83
89
public void close () throws ItemStreamException {
84
90
List <Exception > exceptions = new ArrayList <>();
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ public void update(ExecutionContext executionContext) {
102
102
/**
103
103
* Broadcast the call to close.
104
104
* @throws ItemStreamException thrown if one of the {@link ItemStream}s in the list
105
- * fails to close.
105
+ * fails to close. Original exceptions thrown by delegates are added as suppressed
106
+ * exceptions into this one, in the same order as delegates were registered.
106
107
*/
107
108
@ Override
108
109
public void close () throws ItemStreamException {
Original file line number Diff line number Diff line change @@ -105,6 +105,12 @@ public void setDelegates(List<ItemWriter<? super T>> delegates) {
105
105
this .delegates = delegates ;
106
106
}
107
107
108
+ /**
109
+ * Close all delegates.
110
+ * @throws ItemStreamException thrown if one of the delegates fails to close. Original
111
+ * exceptions thrown by delegates are added as suppressed exceptions into this one, in
112
+ * the same order as delegates were registered.
113
+ */
108
114
@ Override
109
115
public void close () throws ItemStreamException {
110
116
List <Exception > exceptions = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments