public class KafkaAdminConsumer extends Object implements IKafkaSettingsMapConsumer
| Constructor and Description |
|---|
KafkaAdminConsumer(String bootstrapServers,
String topic,
String groupId,
String clientId,
org.thales.punch.platform.api.pojo.JavaStoreSecurity securityStores)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
readLatestBytes(Duration timeout) |
org.thales.punch.settings.api.ISettingsMap |
readLatestSettingsMap(Duration timeout)
Read the latest map saved in the admin topic.
|
public KafkaAdminConsumer(String bootstrapServers, String topic, String groupId, String clientId, org.thales.punch.platform.api.pojo.JavaStoreSecurity securityStores)
bootstrapServers - the bootstrap server addresstopic - the target admin topicgroupId - the group identifierclientId - the client identifierpublic org.thales.punch.settings.api.ISettingsMap readLatestSettingsMap(Duration timeout) throws TimeoutException
readLatestSettingsMap in interface IKafkaSettingsMapConsumertimeout - how much time you accept to waitTimeoutExceptionpublic byte[] readLatestBytes(Duration timeout) throws TimeoutException
TimeoutExceptionpublic void close()
close in interface AutoCloseableCopyright © 2014–2023. All rights reserved.