|
1 | 1 | /*
|
2 |
| - * Copyright 2018-2023 the original author or authors. |
| 2 | + * Copyright 2018-2024 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -64,6 +64,19 @@ public interface AfterRollbackProcessor<K, V> {
|
64 | 64 | void process(List<ConsumerRecord<K, V>> records, Consumer<K, V> consumer,
|
65 | 65 | MessageListenerContainer container, Exception exception, boolean recoverable, EOSMode eosMode);
|
66 | 66 |
|
| 67 | + /** |
| 68 | + * Process the entire batch of records. |
| 69 | + * Recoverable will be true if the container is processing entire batch of records; |
| 70 | + * @param records the records. |
| 71 | + * @param recordList the record list. |
| 72 | + * @param consumer the consumer. |
| 73 | + * @param container the container. |
| 74 | + * @param exception the exception |
| 75 | + * @param recoverable the recoverable. |
| 76 | + * @param eosMode the {@link EOSMode}. |
| 77 | + * @since 3.2 |
| 78 | + * @see #isProcessInTransaction() |
| 79 | + */ |
67 | 80 | default void processBatch(ConsumerRecords<K, V> records, List<ConsumerRecord<K, V>> recordList,
|
68 | 81 | Consumer<K, V> consumer, MessageListenerContainer container, Exception exception,
|
69 | 82 | boolean recoverable, ContainerProperties.EOSMode eosMode) {
|
|
0 commit comments