public class KafkaOffsetLagResult extends Object implements org.json.simple.JSONAware
Class representing the log head offsets, spout offsets and the lag for a topic.
Constructor and Description |
---|
KafkaOffsetLagResult(String topic,
int parition,
long consumerCommittedOffset,
long logHeadOffset) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getConsumerCommittedOffset() |
long |
getLag() |
long |
getLogHeadOffset() |
int |
getPartition() |
String |
getTopic() |
int |
hashCode() |
String |
toJSONString() |
String |
toString() |
public KafkaOffsetLagResult(String topic, int parition, long consumerCommittedOffset, long logHeadOffset)
public String getTopic()
public int getPartition()
public long getConsumerCommittedOffset()
public long getLogHeadOffset()
public long getLag()
public String toJSONString()
toJSONString
in interface org.json.simple.JSONAware
Copyright © 2019 The Apache Software Foundation. All rights reserved.