Commit 09fb266
GH-1672: Option to Immediately Stop the Container
Resolves #1672
Previously (and still, by default), stopping the listener container does
not take effect until the records from the previous poll are all processed.
Add an option to stop after the current record, instead.
**cherry-pick to 2.6.x, 1.5.x**
# Conflicts:
# src/reference/asciidoc/whats-new.adoc
# Conflicts:
# src/reference/asciidoc/whats-new.adoc1 parent c54d4f5 commit 09fb266
File tree
4 files changed
+82
-1
lines changed- spring-kafka/src
- main/java/org/springframework/kafka/listener
- test/java/org/springframework/kafka/listener
- src/reference/asciidoc
4 files changed
+82
-1
lines changedLines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| |||
771 | 773 | | |
772 | 774 | | |
773 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
774 | 796 | | |
775 | 797 | | |
776 | 798 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| 585 | + | |
| 586 | + | |
585 | 587 | | |
586 | 588 | | |
587 | 589 | | |
| |||
1793 | 1795 | | |
1794 | 1796 | | |
1795 | 1797 | | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1796 | 1801 | | |
1797 | 1802 | | |
1798 | 1803 | | |
| |||
1882 | 1887 | | |
1883 | 1888 | | |
1884 | 1889 | | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
1885 | 1893 | | |
1886 | 1894 | | |
1887 | 1895 | | |
| |||
Lines changed: 48 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
3142 | 3142 | | |
3143 | 3143 | | |
3144 | 3144 | | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
3145 | 3192 | | |
3146 | 3193 | | |
3147 | 3194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2336 | 2336 | | |
2337 | 2337 | | |
2338 | 2338 | | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
2339 | 2343 | | |
2340 | 2344 | | |
2341 | 2345 | | |
| |||
0 commit comments