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 IKafkaSettingsMapConsumer
timeout
- how much time you accept to waitTimeoutException
public byte[] readLatestBytes(Duration timeout) throws TimeoutException
TimeoutException
public void close()
close
in interface AutoCloseable
Copyright © 2014–2023. All rights reserved.