props.put("client.id", properties.getClientId());
props.put("acks", properties.getProducerProperties().getAcks());
props.put("delivery.timeout.ms", (int)properties.getProducerProperties().getDeliveryTimeout().toMillis());
+ props.put("max.block.ms", (int)properties.getProducerProperties().getMaxBlock().toMillis());
props.put("batch.size", properties.getProducerProperties().getBatchSize());
props.put("metadata.max.age.ms", 5000); // 5 Sekunden
props.put("request.timeout.ms", 5000); // 5 Sekunden
- props.put("max.block.ms", 5000); // 5 Sekunden
props.put("linger.ms", properties.getProducerProperties().getLinger().toMillis());
props.put("compression.type", properties.getProducerProperties().getCompressionType());
props.put("key.serializer", StringSerializer.class.getName());
topic: test
acks: -1
delivery-timeout: 10s
+ max-block: 5s
batch-size: 16384
linger: 0
compression-type: gzip
topic: ${juplo.producer.topic}
acks: ${juplo.producer.acks}
delivery-timeout: ${juplo.producer.delivery-timeout}
+ max-block: ${juplo.producer.max-block}
batch-size: ${juplo.producer.batch-size}
linger: ${juplo.producer.linger}
compression-type: ${juplo.producer.compression-type}