public class SourceMetrics extends Metrics
siddhiAppName, streamId| Constructor and Description |
|---|
SourceMetrics(String siddhiAppName,
String streamId) |
| Modifier and Type | Method and Description |
|---|---|
long |
getConsumerLag() |
void |
getConsumerLag(String topic,
String groupId,
int partition,
long recordTimestamp) |
void |
getCurrentOffset(String topic,
Integer partition,
String groupId) |
org.wso2.carbon.metrics.core.Counter |
getErrorCountPerStream(String topic,
String groupId,
String errorString) |
void |
getLastMessageConsumedTime(String topic,
String groupId) |
org.wso2.carbon.metrics.core.Counter |
getReadCountPerStream(String topic,
Integer partition,
String groupId) |
org.wso2.carbon.metrics.core.Counter |
getTotalReads() |
void |
setConsumerLag(long consumerLag) |
void |
setTopicOffsetMap(Map<String,Map<Integer,Long>> topicOffsetMap) |
public org.wso2.carbon.metrics.core.Counter getTotalReads()
public org.wso2.carbon.metrics.core.Counter getReadCountPerStream(String topic, Integer partition, String groupId)
public org.wso2.carbon.metrics.core.Counter getErrorCountPerStream(String topic, String groupId, String errorString)
public void getConsumerLag(String topic, String groupId, int partition, long recordTimestamp)
public long getConsumerLag()
public void setConsumerLag(long consumerLag)
Copyright © 2022 WSO2. All rights reserved.