props.put("bootstrap.servers", properties.getBootstrapServer());
props.put("client.id", properties.getClientId());
props.put("acks", properties.getProducerProperties().getAcks());
+ props.put("delivery.timeout.ms", (int)properties.getProducerProperties().getDeliveryTimeout().toMillis());
props.put("batch.size", properties.getProducerProperties().getBatchSize());
props.put("metadata.max.age.ms", 5000); // 5 Sekunden
- props.put("delivery.timeout.ms", 10000); // 10 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());
producer:
topic: test
acks: -1
+ delivery-timeout: 10s
batch-size: 16384
linger: 0
compression-type: gzip
producer:
topic: ${juplo.producer.topic}
acks: ${juplo.producer.acks}
+ delivery-timeout: ${juplo.producer.delivery-timeout}
batch-size: ${juplo.producer.batch-size}
linger: ${juplo.producer.linger}
compression-type: ${juplo.producer.compression-type}