Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose manual stop method in KafkaReceiver #380

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: sanitize unused
  • Loading branch information
cjlee38 committed Jan 17, 2024
commit 15a85533992cb871c6599521f8e1a34b68bcdde6
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
* To be exposed as a public class in the next major version (a subject to the API review).
*/
class ConsumerHandler<K, V> {

private static final Logger log = LoggerFactory.getLogger(ConsumerHandler.class);

/** Note: Methods added to this set should also be included in javadoc for {@link KafkaReceiver#doOnConsumer(Function)} */
private static final Set<String> DELEGATE_METHODS = new HashSet<>(Arrays.asList(
"assignment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ private Disposable subscribe(Flux<? extends ConsumerRecord<Integer, String>> kaf
return disposable;
}

private void waitFoPartitionAssignment() throws InterruptedException { // todo : typo
private void waitFoPartitionAssignment() throws InterruptedException {
assertTrue("Partitions not assigned", assignSemaphore.tryAcquire(sessionTimeoutMillis + 1000, TimeUnit.MILLISECONDS));
}

Expand Down