Skip to main content
Skip table of contents

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: clusterIdclientIdtopic

Input

The adapter does not expect any input.

Output

The adapter provides the following output for the Last offset operation:

CODE
<?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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.