mirror of https://github.com/apache/kafka.git
KAFKA-17723 Fix "this-escape" compiler warnings (MultiThreadedEventPr… (#19309)
Cherry picked from commit 2353a7c508
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
fe5802b304
commit
fd4c90a7c9
|
@ -255,6 +255,7 @@ public class DistributedHerder extends AbstractHerder implements Runnable {
|
||||||
* @param uponShutdown any {@link AutoCloseable} objects that should be closed when this herder is {@link #stop() stopped},
|
* @param uponShutdown any {@link AutoCloseable} objects that should be closed when this herder is {@link #stop() stopped},
|
||||||
* after all services and resources owned by this herder are stopped
|
* after all services and resources owned by this herder are stopped
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("this-escape")
|
||||||
public DistributedHerder(DistributedConfig config,
|
public DistributedHerder(DistributedConfig config,
|
||||||
Time time,
|
Time time,
|
||||||
Worker worker,
|
Worker worker,
|
||||||
|
@ -272,6 +273,7 @@ public class DistributedHerder extends AbstractHerder implements Runnable {
|
||||||
}
|
}
|
||||||
|
|
||||||
// visible for testing
|
// visible for testing
|
||||||
|
@SuppressWarnings("this-escape")
|
||||||
DistributedHerder(DistributedConfig config,
|
DistributedHerder(DistributedConfig config,
|
||||||
Worker worker,
|
Worker worker,
|
||||||
String workerId,
|
String workerId,
|
||||||
|
|
|
@ -34,7 +34,7 @@ import java.util.stream.IntStream;
|
||||||
* A multithreaded {{@link CoordinatorEvent}} processor which uses a {{@link EventAccumulator}}
|
* A multithreaded {{@link CoordinatorEvent}} processor which uses a {{@link EventAccumulator}}
|
||||||
* which guarantees that events sharing a partition key are not processed concurrently.
|
* which guarantees that events sharing a partition key are not processed concurrently.
|
||||||
*/
|
*/
|
||||||
public class MultiThreadedEventProcessor implements CoordinatorEventProcessor {
|
public final class MultiThreadedEventProcessor implements CoordinatorEventProcessor {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The poll timeout to wait for an event by the EventProcessorThread.
|
* The poll timeout to wait for an event by the EventProcessorThread.
|
||||||
|
|
Loading…
Reference in New Issue