Class DescribeConsumerGroupsHandler

All Implemented Interfaces:
AdminApiHandler<CoordinatorKey,ConsumerGroupDescription>

public class DescribeConsumerGroupsHandler extends AdminApiHandler.Batched<CoordinatorKey,ConsumerGroupDescription>
  • Constructor Details

    • DescribeConsumerGroupsHandler

      public DescribeConsumerGroupsHandler(boolean includeAuthorizedOperations, org.apache.kafka.common.utils.LogContext logContext)
  • Method Details

    • newFuture

    • apiName

      public String apiName()
      Description copied from interface: AdminApiHandler
      Get a user-friendly name for the API this handler is implementing.
    • lookupStrategy

      public AdminApiLookupStrategy<CoordinatorKey> lookupStrategy()
      Description copied from interface: AdminApiHandler
      Get the lookup strategy that is responsible for finding the brokerId which will handle each respective key.
      Returns:
      non-null lookup strategy
    • buildBatchedRequest

      public org.apache.kafka.common.requests.DescribeGroupsRequest.Builder buildBatchedRequest(int coordinatorId, Set<CoordinatorKey> keys)
    • handleResponse

      public AdminApiHandler.ApiResult<CoordinatorKey,ConsumerGroupDescription> handleResponse(org.apache.kafka.common.Node coordinator, Set<CoordinatorKey> groupIds, org.apache.kafka.common.requests.AbstractResponse abstractResponse)
      Description copied from interface: AdminApiHandler
      Callback that is invoked when a request returns successfully. The handler should parse the response, check for errors, and return a result which indicates which keys (if any) have either been completed or failed with an unrecoverable error. It is also possible that the response indicates an incorrect target brokerId (e.g. in the case of a NotLeader error when the request is bound for a partition leader). In this case the key will be "unmapped" from the target brokerId and lookup will be retried. Note that keys which received a retriable error should be left out of the result. They will be retried automatically.
      Parameters:
      coordinator - the broker that the associated request was sent to
      groupIds - the set of keys from the associated request
      abstractResponse - the response received from the broker
      Returns:
      result indicating key completion, failure, and unmapping