public class KafkaConfigurationStoreImpl extends Object implements org.thales.punch.settings.api.IConfigurationStore
Constructor and Description |
---|
KafkaConfigurationStoreImpl(String bootstrapServers,
String topic,
org.thales.punch.platform.api.pojo.JavaStoreSecurity securityStores) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkIfPathExist(String path) |
void |
close() |
org.thales.punch.settings.api.ISettingsMap |
readMap(String path) |
void |
refresh() |
void |
rmr(String path) |
org.thales.punch.settings.api.IConfigurationStore |
startBlocking() |
void |
writeMap(org.thales.punch.settings.api.ISettingsMap value,
String path) |
public KafkaConfigurationStoreImpl(String bootstrapServers, String topic, org.thales.punch.platform.api.pojo.JavaStoreSecurity securityStores) throws TimeoutException
bootstrapServers
- the bootstrap server addresstopic
- the topic namesecurityStores
- the Object containing the truststore and keystore information. If not null, activate ssl.TimeoutException
public void refresh() throws TimeoutException
refresh
in interface org.thales.punch.settings.api.IConfigurationStore
TimeoutException
public org.thales.punch.settings.api.ISettingsMap readMap(String path)
readMap
in interface org.thales.punch.settings.api.IConfigurationStore
public void writeMap(org.thales.punch.settings.api.ISettingsMap value, String path)
writeMap
in interface org.thales.punch.settings.api.IConfigurationStore
public org.thales.punch.settings.api.IConfigurationStore startBlocking()
startBlocking
in interface org.thales.punch.settings.api.IConfigurationStore
public void close()
close
in interface AutoCloseable
close
in interface org.thales.punch.settings.api.IConfigurationStore
public boolean checkIfPathExist(String path)
checkIfPathExist
in interface org.thales.punch.settings.api.IConfigurationStore
public void rmr(String path)
rmr
in interface org.thales.punch.settings.api.IConfigurationStore
Copyright © 2014–2023. All rights reserved.