public class KafkaAdminProducerUtil extends Object
This protocol is used by the core punch administration to keep track of channels and applications status, as well as by the shiva application scheduler.
Modifier and Type | Method and Description |
---|---|
static org.apache.kafka.clients.producer.KafkaProducer<String,byte[]> |
getAdminProducer(String bootstrapServers,
org.thales.punch.platform.api.pojo.JavaStoreSecurity securityStores)
Return a producer for admin purpose.
|
public static org.apache.kafka.clients.producer.KafkaProducer<String,byte[]> getAdminProducer(String bootstrapServers, org.thales.punch.platform.api.pojo.JavaStoreSecurity securityStores)
Note that this producer is designed to succeed in writing to Kafka even though not all Kafka servers are up and running.
The idea is to make that consumer able to keep working in non-nominal situations.
bootstrapServers
- kafka addressessecurityStores
- the Object containing the truststore and keystore information. If not null, activate ssl.Copyright © 2014–2023. All rights reserved.