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

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

There is a newer version: 3.6.0-RC1
Show newest version
/*
 * Copyright 2018-2024 OVO Energy Limited
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package fs2.kafka

/**
  * The available options for [[ProducerSettings#withAcks]].

* * Available options include:
* - [[Acks#Zero]] to not wait for any acknowledgement from the server,
* - [[Acks#One]] to only wait for acknowledgement from the leader node,
* - [[Acks#All]] to wait for acknowledgement from all in-sync replicas. */ sealed abstract class Acks object Acks { private[kafka] case object ZeroAcks extends Acks { override def toString: String = "Zero" } private[kafka] case object OneAcks extends Acks { override def toString: String = "One" } private[kafka] case object AllAcks extends Acks { override def toString: String = "All" } /** * Option to not wait for any acknowledgement from the server when producing records. */ val Zero: Acks = ZeroAcks /** * Option to only wait for acknowledgement from the leader node when producing records. */ val One: Acks = OneAcks /** * Option to wait for acknowledgement from all in-sync replicas when producing records. */ val All: Acks = AllAcks }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy