public class MessageStoreSubscriptionStatistics extends AbstractMessageStoreStatistics
messageCount, messageSize
enabled
Constructor and Description |
---|
MessageStoreSubscriptionStatistics(boolean enabled) |
Modifier and Type | Method and Description |
---|---|
CountStatisticImpl |
getMessageCount()
Total count for all subscriptions
|
CountStatisticImpl |
getMessageCount(String subKey) |
SizeStatisticImpl |
getMessageSize()
Total size for all subscriptions
|
SizeStatisticImpl |
getMessageSize(String subKey) |
void |
removeSubscription(String subKey) |
void |
reset()
Reset the statistic
|
setEnabled, setParent
addStatistic, getStatistic, getStatisticNames, getStatistics
appendFieldDescription, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, toString, updateSampleTime
public MessageStoreSubscriptionStatistics(boolean enabled)
enabled
- countDescription
- sizeDescription
- public CountStatisticImpl getMessageCount()
getMessageCount
in class AbstractMessageStoreStatistics
public SizeStatisticImpl getMessageSize()
getMessageSize
in class AbstractMessageStoreStatistics
public CountStatisticImpl getMessageCount(String subKey)
public SizeStatisticImpl getMessageSize(String subKey)
public void removeSubscription(String subKey)
public void reset()
Resettable
reset
in interface Resettable
reset
in class AbstractMessageStoreStatistics
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.