Class BackgroundEventHandler
java.lang.Object
org.apache.kafka.clients.consumer.internals.events.BackgroundEventHandler
An event handler that receives
.
background events from the
network thread which are then made available to the application thread
via the
invalid reference
BackgroundEventProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundEventHandler(org.apache.kafka.common.utils.LogContext logContext, Queue<BackgroundEvent> backgroundEventQueue) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BackgroundEvent event) Add aBackgroundEventto the handler.
-
Constructor Details
-
BackgroundEventHandler
public BackgroundEventHandler(org.apache.kafka.common.utils.LogContext logContext, Queue<BackgroundEvent> backgroundEventQueue)
-
-
Method Details
-
add
Add aBackgroundEventto the handler.- Parameters:
event- ABackgroundEventcreated by thenetwork thread
-