activemq-cpp-3.4.0
|
#include <src/main/activemq/util/Usage.h>
Public Member Functions | |
virtual | ~Usage () |
virtual void | waitForSpace ()=0 |
Waits forever for more space to be returned to this Usage Manager. | |
virtual void | waitForSpace (unsigned int timeout)=0 |
Waits for more space to be returned to this Usage Manager, times out when the given time span in milliseconds elapses. | |
virtual void | enqueueUsage (unsigned long long value)=0 |
Tries to increase the usage by value amount but blocks if this object is currently full. | |
virtual void | increaseUsage (unsigned long long value)=0 |
Increases the usage by the value amount. | |
virtual void | decreaseUsage (unsigned long long value)=0 |
Decreases the usage by the value amount. | |
virtual bool | isFull () const =0 |
Returns true if this Usage instance is full, i.e. |
virtual activemq::util::Usage::~Usage | ( | ) | [inline, virtual] |
virtual void activemq::util::Usage::decreaseUsage | ( | unsigned long long | value | ) | [pure virtual] |
Decreases the usage by the value amount.
value | Amount of space to return to the pool |
Implemented in activemq::util::MemoryUsage.
virtual void activemq::util::Usage::enqueueUsage | ( | unsigned long long | value | ) | [pure virtual] |
Tries to increase the usage by value amount but blocks if this object is currently full.
value | Amount of usage in bytes to add. |
Implemented in activemq::util::MemoryUsage.
virtual void activemq::util::Usage::increaseUsage | ( | unsigned long long | value | ) | [pure virtual] |
Increases the usage by the value amount.
value | Amount of usage to add. |
Implemented in activemq::util::MemoryUsage.
virtual bool activemq::util::Usage::isFull | ( | ) | const [pure virtual] |
Returns true if this Usage instance is full, i.e.
Usage >= 100%
Implemented in activemq::util::MemoryUsage.
virtual void activemq::util::Usage::waitForSpace | ( | unsigned int | timeout | ) | [pure virtual] |
Waits for more space to be returned to this Usage Manager, times out when the given time span in milliseconds elapses.
timeout | The time to wait for more space. |
Implemented in activemq::util::MemoryUsage.
virtual void activemq::util::Usage::waitForSpace | ( | ) | [pure virtual] |
Waits forever for more space to be returned to this Usage Manager.
Implemented in activemq::util::MemoryUsage.