THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- The polling thread updates the subscriptionState.
- Create an ASSIGN event, and queue up the event to the background thread.
- Background thread receives the event and executes the event.
- send a commitOffset
- Update metadata
Unsubscribe
- The polling thread removes the subscriptions from the subscriptionState
- executes the onPartitionRevoke callback
- Send background thread an LEAVE_GROUP event
- Returns
- The background thread:
- Initiate LeaveGroup
Subscribe
- The polling thread updates the subscriptionState.
- Create a SUBSCRIBE event, and send it to the background thread.
- Background thread executes the event:
- Update metadata
...
- Poll the ConsumerEventQueue, and execute the events accordingly
- Prepare a FETCH event, and send it to the background thread.
- Wait for the CompleteableFuture to finish
- Execute the interceptor.onConsumer and return the data.
- Background thread execute the FETCH event:
- poll coordinatorAutocommits
- issue fetch requests
Event Data Models
...