zio.kafka.producer.ProducerCompression
See theProducerCompression companion class
object ProducerCompression
The compression codecs that Kafka supports while producing records.
Attributes
- Companion
- class
- Source
- ProducerCompression.scala
- Graph
-
- Supertypes
- Self type
-
ProducerCompression.type
Members list
Type members
Classlikes
final case class Gzip(level: Int = ...) extends ProducerCompression
Produce kafka records with GZIP compression.
Produce kafka records with GZIP compression.
Value parameters
- level
-
a value between 1 and 9 or -1 (defaults to -1)
Attributes
- Source
- ProducerCompression.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ProducerCompressionclass Objecttrait Matchableclass AnyShow all
final case class Lz4(level: Int = ...) extends ProducerCompression
Produce kafka records with Lz4 compression.
Produce kafka records with Lz4 compression.
Value parameters
- level
-
a value between 1 and 17 (defaults to 9)
Attributes
- Source
- ProducerCompression.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ProducerCompressionclass Objecttrait Matchableclass AnyShow all
case object NoCompression extends ProducerCompression
Produce kafka records without compression.
Produce kafka records without compression.
Attributes
- Source
- ProducerCompression.scala
- Supertypes
- Self type
-
NoCompression.type
final case class Snappy() extends ProducerCompression
Produce kafka records with Snappy compression.
Produce kafka records with Snappy compression.
Attributes
- Source
- ProducerCompression.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ProducerCompressionclass Objecttrait Matchableclass AnyShow all
final case class Zstd(level: Int = ...) extends ProducerCompression
Produce kafka records with Zstd compression.
Produce kafka records with Zstd compression.
Value parameters
- level
-
a value between -131072 and 22 (defaults to 3)
Attributes
- Source
- ProducerCompression.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ProducerCompressionclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements.
The name of the type.
In this article