mirror of https://github.com/apache/activemq.git
AMQ-5521: Average message size attribute on destination mbean should not have decimals
This commit is contained in:
parent
3ec36818eb
commit
dbf2c28b96
|
@ -161,8 +161,9 @@ public class DestinationView implements DestinationViewMBean {
|
|||
/**
|
||||
* @return the average size of a message (bytes)
|
||||
*/
|
||||
public double getAverageMessageSize() {
|
||||
return destination.getDestinationStatistics().getMessageSize().getAverageSize();
|
||||
public long getAverageMessageSize() {
|
||||
// we are okay with the size without decimals so cast to long
|
||||
return (long) destination.getDestinationStatistics().getMessageSize().getAverageSize();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -264,12 +264,11 @@ public interface DestinationViewMBean {
|
|||
@MBeanInfo("The shortest time a message has been held this destination.")
|
||||
long getMinEnqueueTime();
|
||||
|
||||
|
||||
@MBeanInfo("Average time a message has been held this destination.")
|
||||
double getAverageEnqueueTime();
|
||||
|
||||
@MBeanInfo("Average message size on this destination")
|
||||
double getAverageMessageSize();
|
||||
long getAverageMessageSize();
|
||||
|
||||
@MBeanInfo("Max message size on this destination")
|
||||
public long getMaxMessageSize();
|
||||
|
|
Loading…
Reference in New Issue