/** * @return the min size of a message (bytes) */ public long getMinMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMinSize(); }
/** * @return the max size of a message (bytes) */ public long getMaxMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMaxSize(); }
/** * @return the max size of a message (bytes) */ @Override public long getMaxMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMaxSize(); }
/** * @return the average size of a message (bytes) */ public double getAverageMessageSize() { return destination.getDestinationStatistics().getMessageSize().getAverageSize(); }
/** * @return the average size of a message (bytes) */ @Override public long getAverageMessageSize() { // we are okay with the size without decimals so cast to long return (long) destination.getDestinationStatistics().getMessageSize().getAverageSize(); }
/** * @return the min size of a message (bytes) */ @Override public long getMinMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMinSize(); }
/** * @return the min size of a message (bytes) */ @Override public long getMinMessageSize() { return safeGetBroker().getDestinationStatistics().getMessageSize().getMinSize(); }
/** * @return the max size of a message (bytes) */ @Override public long getMaxMessageSize() { return safeGetBroker().getDestinationStatistics().getMessageSize().getMaxSize(); }
/** * @return the average size of a message (bytes) */ @Override public long getAverageMessageSize() { // we are okay with the size without decimals so cast to long return (long) safeGetBroker().getDestinationStatistics().getMessageSize().getAverageSize(); }
final void messageSent(final ConnectionContext context, final Message msg) throws Exception { pendingSends.decrementAndGet(); destinationStatistics.getEnqueues().increment(); destinationStatistics.getMessages().increment(); destinationStatistics.getMessageSize().addSize(msg.getSize()); messageDelivered(context, msg); consumersLock.readLock().lock(); try { if (consumers.isEmpty()) { onMessageWithNoConsumers(context, msg); } }finally { consumersLock.readLock().unlock(); } LOG.debug("{} Message {} sent to {}", new Object[]{ broker.getBrokerName(), msg.getMessageId(), this.destination }); wakeup(); }
destinationStatistics.getMessageSize().addSize(message.getSize()); MessageEvaluationContext msgContext = null;
statsMessage.setLong("messagesCached", stats.getMessagesCached().getCount()); statsMessage.setLong("averageMessageSize", (long) stats.getMessageSize().getAverageSize()); statsMessage.setInt("memoryPercentUsage", dest.getMemoryUsage().getPercentUsage()); statsMessage.setLong("memoryUsage", dest.getMemoryUsage().getUsage()); statsMessage.setLong("inflightCount", stats.getInflight().getCount()); statsMessage.setLong("averageMessageSize",(long) stats.getMessageSize().getAverageSize()); statsMessage.setLong("messagesCached", stats.getMessagesCached().getCount()); statsMessage.setInt("memoryPercentUsage", systemUsage.getMemoryUsage().getPercentUsage());
/** * @return the max size of a message (bytes) */ public long getMaxMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMaxSize(); }
/** * @return the average size of a message (bytes) */ @Override public long getAverageMessageSize() { // we are okay with the size without decimals so cast to long return (long) destination.getDestinationStatistics().getMessageSize().getAverageSize(); }
/** * @return the min size of a message (bytes) */ public long getMinMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMinSize(); }
/** * @return the max size of a message (bytes) */ @Override public long getMaxMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMaxSize(); }
/** * @return the min size of a message (bytes) */ @Override public long getMinMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMinSize(); }
/** * @return the max size of a message (bytes) */ public long getMaxMessageSize() { return destination.getDestinationStatistics().getMessageSize().getMaxSize(); }
/** * @return the average size of a message (bytes) */ @Override public long getAverageMessageSize() { // we are okay with the size without decimals so cast to long return (long) destination.getDestinationStatistics().getMessageSize().getAverageSize(); }
/** * @return the max size of a message (bytes) */ @Override public long getMaxMessageSize() { return safeGetBroker().getDestinationStatistics().getMessageSize().getMaxSize(); }