Class PendingAckHandleStatsImpl
java.lang.Object
org.apache.pulsar.broker.transaction.pendingack.impl.PendingAckHandleStatsImpl
- All Implemented Interfaces:
PendingAckHandleStats
-
Constructor Summary
ConstructorsConstructorDescriptionPendingAckHandleStatsImpl(String topic, String subscription, boolean exposeTopicLevelMetrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longlonglonglongvoidrecordAbortTxn(boolean success) voidrecordCommitTxn(boolean success, long nanos)
-
Constructor Details
-
PendingAckHandleStatsImpl
-
-
Method Details
-
recordCommitTxn
public void recordCommitTxn(boolean success, long nanos) - Specified by:
recordCommitTxnin interfacePendingAckHandleStats
-
recordAbortTxn
public void recordAbortTxn(boolean success) - Specified by:
recordAbortTxnin interfacePendingAckHandleStats
-
close
public void close()- Specified by:
closein interfacePendingAckHandleStats
-
getCommitSuccessCount
public long getCommitSuccessCount()- Specified by:
getCommitSuccessCountin interfacePendingAckHandleStats
-
getCommitFailedCount
public long getCommitFailedCount()- Specified by:
getCommitFailedCountin interfacePendingAckHandleStats
-
getAbortSuccessCount
public long getAbortSuccessCount()- Specified by:
getAbortSuccessCountin interfacePendingAckHandleStats
-
getAbortFailedCount
public long getAbortFailedCount()- Specified by:
getAbortFailedCountin interfacePendingAckHandleStats
-
getAttributes
- Specified by:
getAttributesin interfacePendingAckHandleStats
-