Class KafkaTopicClient
java.lang.Object
io.quarkus.kafka.client.runtime.devui.KafkaTopicClient
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) KafkaAdminClient(package private) KafkaModelConverter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateMessage(KafkaMessageCreateRequest request) getPagePartitionOffset(String topicName, Collection<Integer> requestedPartitions, Order order) Reads the messages from particular topic.partitions(String topicName)
-
Field Details
-
adminClient
-
modelConverter
KafkaModelConverter modelConverter -
config
-
-
Constructor Details
-
KafkaTopicClient
public KafkaTopicClient()
-
-
Method Details
-
getTopicMessages
public KafkaMessagePage getTopicMessages(String topicName, Order order, Map<Integer, Long> partitionOffsets, int pageSize) throws ExecutionException, InterruptedExceptionReads the messages from particular topic. Offset for next page is returned within response. The first/last page offset could be retrieved withgetPagePartitionOffset(String, Collection, Order)method.- Parameters:
topicName- topic to read messages fromorder- ascending or descending. Defaults to descending (newest first)partitionOffsets- the offset for page to be readpageSize- size of read page- Returns:
- page of messages, matching requested filters
- Throws:
ExecutionExceptionInterruptedException
-
getPagePartitionOffset
public Map<Integer,Long> getPagePartitionOffset(String topicName, Collection<Integer> requestedPartitions, Order order) throws ExecutionException, InterruptedException -
createMessage
-
partitions
-