public final class RecordMetadata
extends java.lang.Object
| Constructor and Description |
|---|
RecordMetadata(TopicPartition topicPartition,
long baseOffset,
long relativeOffset) |
| Modifier and Type | Method and Description |
|---|---|
long |
offset()
The offset of the record in the topic/partition.
|
int |
partition()
The partition the record was sent to
|
java.lang.String |
topic()
The topic the record was appended to
|
public RecordMetadata(TopicPartition topicPartition, long baseOffset, long relativeOffset)