All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fs2.kafka.ConsumerShutdownException.scala Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2018-2024 OVO Energy Limited
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package fs2.kafka

import org.apache.kafka.common.KafkaException

/**
  * [[ConsumerShutdownException]] indicates that a request could not be completed because the
  * consumer has already shutdown.
  */
sealed abstract class ConsumerShutdownException
    extends KafkaException("consumer has already shutdown")

private[kafka] object ConsumerShutdownException {

  def apply(): ConsumerShutdownException =
    new ConsumerShutdownException {

      override def toString: String =
        s"fs2.kafka.ConsumerShutdownException: $getMessage"

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy