Operation: Last offset
The Last offset
operation returns the offset of a specific client for its subscribed topic. The offset can be used to receive past messages again.
If this operation is used for a client that has not subscribed to a topic, an empty result is returned.
Required parameters: clusterId
, clientId
, topic
Input
The adapter does not expect any input.
Output
The adapter provides the following output for the Last offset
operation:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Offsets>
<Offset partitionId="0" value="17"/>
</Offsets>
In the output of the Last offset
operation, thepartitionId
indicates the partition in which the topic is located, and value
is the offset to the last message read by the specified client.