Producer.this

  1. this(Client client, string topic, int partition, Compression compression, int compressionLevel)
  2. this(Client client, string topic, int partition, Compression compression)
  3. this(Client client, string topic, int partition)

Parameters

client Client

the client instance

topic string

producer topic

partition int

producer partition

compression Compression

the compression type, it uses config.producerCompression by default

compressionLevel int

valid only for GZIP compression, compression level between 1 and 9: 1 gives best speed, 9 gives best compression, it uses config.producerCompressionLevel by default

Meta