Class ConsumerGroupOffsetsUtils

java.lang.Object
io.confluent.kafkarest.exceptions.ConsumerGroupOffsetsUtils

public final class ConsumerGroupOffsetsUtils extends Object
  • Field Details

    • INTERNAL_SERVER_ERROR_MSG_LIST_OFFSETS_TMPL

      public static final String INTERNAL_SERVER_ERROR_MSG_LIST_OFFSETS_TMPL
      See Also:
    • INTERNAL_SERVER_ERROR_MSG_ALTER_OFFSETS_TMPL

      public static final String INTERNAL_SERVER_ERROR_MSG_ALTER_OFFSETS_TMPL
      See Also:
    • UNAUTHORIZED_ERROR_MSG_LIST_OFFSETS_TMPL

      public static final String UNAUTHORIZED_ERROR_MSG_LIST_OFFSETS_TMPL
      See Also:
    • UNAUTHORIZED_ERROR_MSG_ALTER_OFFSETS_TMPL

      public static final String UNAUTHORIZED_ERROR_MSG_ALTER_OFFSETS_TMPL
      See Also:
    • GROUP_UNAUTHORIZED_ERROR_MSG_ALTER_OFFSETS_TMPL

      public static final String GROUP_UNAUTHORIZED_ERROR_MSG_ALTER_OFFSETS_TMPL
      See Also:
    • TOPIC_UNAUTHORIZED_ERROR_MSG_ALTER_OFFSETS_TMPL

      public static final String TOPIC_UNAUTHORIZED_ERROR_MSG_ALTER_OFFSETS_TMPL
      See Also:
    • BAD_REQUEST_ERROR_MSG_ALTER_OFFSETS_TMPL

      public static final String BAD_REQUEST_ERROR_MSG_ALTER_OFFSETS_TMPL
      See Also:
  • Method Details

    • mapListOffsetExecutionExceptionToError

      public static ConsumerGroupOffsetsUtils.Error mapListOffsetExecutionExceptionToError(ExecutionException ee, org.apache.kafka.common.TopicPartition tp, String consumerGroupId)
      Maps ExecutionException, thrown while handling result of Admin.ListOffsets(), to REST errors.
    • mapAlterOffsetExecutionExceptionToError

      public static ConsumerGroupOffsetsUtils.Error mapAlterOffsetExecutionExceptionToError(ExecutionException ee, org.apache.kafka.common.TopicPartition tp, String consumerGroupId)
      Maps ExecutionException, thrown while handling result of Admin.alterConsumerGroupOffsets(), to REST errors.