← ZIO Kafka docs

ProducerCompression

zio.kafka.producer.ProducerCompression
See theProducerCompression companion class

The compression codecs that Kafka supports while producing records.

Attributes

Companion
class
Source
ProducerCompression.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object NoCompression extends ProducerCompression

Produce kafka records without compression.

Produce kafka records without compression.

Attributes

Source
ProducerCompression.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala