You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2008/08/20 01:54:39 UTC
svn commit: r687200 -
/activemq/activemq-cpp/trunk/src/main/activemq/util/MemoryUsage.h
Author: tabish
Date: Tue Aug 19 16:54:38 2008
New Revision: 687200
URL: http://svn.apache.org/viewvc?rev=687200&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-189
Adding a memory usage tracking class used to help the Connector track how much memory has been taken up be sent messages that are waiting for a ProducerAck.
Modified:
activemq/activemq-cpp/trunk/src/main/activemq/util/MemoryUsage.h
Modified: activemq/activemq-cpp/trunk/src/main/activemq/util/MemoryUsage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/util/MemoryUsage.h?rev=687200&r1=687199&r2=687200&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/util/MemoryUsage.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/util/MemoryUsage.h Tue Aug 19 16:54:38 2008
@@ -30,7 +30,7 @@
// The physical limit of memory usage this object allows.
unsigned long long limit;
- // Amount of memory currently used in Bytes.
+ // Amount of memory currently used in.
unsigned long long usage;
// Mutex to lock usage and wait on.
@@ -45,7 +45,7 @@
/**
* Creates an instance of an Usage monitor with a set limit.
- * @param limit - amount in bytes of memory this manager allows.
+ * @param limit - amount of memory this manager allows.
*/
MemoryUsage( unsigned long long limit );
@@ -74,14 +74,14 @@
}
/**
- * Increases the usage by the value amount which is in bytes
- * @param value Amount of usage in bytes to add.
+ * Increases the usage by the value amount
+ * @param value Amount of usage to add.
*/
virtual void increaseUsage( unsigned long long value );
/**
* Decreases the usage by the value amount.
- * @param value Amount of space to return to the pool, in Bytes
+ * @param value Amount of space to return to the pool
*/
virtual void decreaseUsage( unsigned long long value );
@@ -100,7 +100,7 @@
/**
* Sets the current usage amount
- * @param usage - The amount of bytes to tag as used.
+ * @param usage - The amount to tag as used.
*/
void setUsage( unsigned long long usage ) {
this->usage = usage;
@@ -108,7 +108,7 @@
/**
* Gets the current limit amount.
- * @return the amount of bytes that can be used before full.
+ * @return the amount that can be used before full.
*/
unsigned long long getLimit() const {
return limit;
@@ -116,7 +116,7 @@
/**
* Sets the current limit amount
- * @param limit - The amount of bytes that can be used before full.
+ * @param limit - The amount that can be used before full.
*/
void setLimit( unsigned long long limit ) {
this->limit = limit;