Package org.apache.kafka.clients.consumer.internals.events
package org.apache.kafka.clients.consumer.internals.events
-
ClassDescriptionThis is the abstract definition of the events created by the KafkaConsumer APIAn event handler that receives
application eventsfrom the application thread which are then readable from theApplicationEventProcessorin thenetwork thread.AnEventProcessorthat is created and executes in thenetwork threadwhich processesapplication eventsgenerated by the application thread.This is the abstract definition of the events created by thenetwork thread.An event handler that receivesbackground eventsfrom thenetwork threadwhich are then made available to the application thread via the.invalid reference
BackgroundEventProcessorApplication event with a result in the form of a future, that can be retrieved within a timeout based on completion.Background event with a result in the form of a future, that can be retrieved within a timeout based on completion.Event that signifies that the application thread has executed theConsumerRebalanceListenercallback.Event that signifies that the network I/O thread wants to invoke one of the callback methods on theConsumerRebalanceListener.AnEventProcessoris the means by which events produced by thread A are processed by thread B.This event is sent by theconsumer's network threadto the application thread so that when the user calls theConsumer.groupMetadata()API, the information is up-to-date.Event for retrieving partition offsets by performing aListOffsetsRequest.Event for resetting offsets for all assigned partitions that require it.Application event indicating that the subscription state has changed, triggered when a user calls the subscribe API.Application event triggered when a user calls the unsubscribe API.Event for validating offsets for all assigned partitions for which a leader change has been detected.