18 #ifndef _ACTIVEMQ_UTIL_MEMORYUSAGE_H_ 19 #define _ACTIVEMQ_UTIL_MEMORYUSAGE_H_ 32 unsigned long long limit;
35 unsigned long long usage;
58 virtual void waitForSpace();
65 virtual void waitForSpace(
unsigned int timeout);
81 virtual void increaseUsage(
unsigned long long value);
87 virtual void decreaseUsage(
unsigned long long value);
92 virtual bool isFull()
const;
unsigned long long getUsage() const
Gets the current usage amount.
Definition: MemoryUsage.h:98
Mutex object that offers recursive support on all platforms as well as providing the ability to use t...
Definition: Mutex.h:39
#define AMQCPP_API
Definition: Config.h:30
unsigned long long getLimit() const
Gets the current limit amount.
Definition: MemoryUsage.h:114
Definition: MemoryUsage.h:28
virtual void enqueueUsage(unsigned long long value)
Tries to increase the usage by value amount but blocks if this object is currently full...
Definition: MemoryUsage.h:72
void setLimit(unsigned long long limit)
Sets the current limit amount.
Definition: MemoryUsage.h:122
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
void setUsage(unsigned long long usage)
Sets the current usage amount.
Definition: MemoryUsage.h:106