Interface for a Policy object that controls message Prefetching on various destination types in ActiveMQ-CPP.
More...
#include <src/main/activemq/core/PrefetchPolicy.h>
Detailed Description
Interface for a Policy object that controls message Prefetching on various destination types in ActiveMQ-CPP.
- Since
- 3.2.0
Constructor & Destructor Documentation
activemq::core::PrefetchPolicy::PrefetchPolicy |
( |
| ) |
|
|
protected |
virtual activemq::core::PrefetchPolicy::~PrefetchPolicy |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual PrefetchPolicy* activemq::core::PrefetchPolicy::clone |
( |
| ) |
const |
|
pure virtual |
Checks the supplied properties object for properties matching the configurable settings of this class.
The default implementation looks for properties named with the prefix cms.PrefetchPolicy.XXX where XXX is the name of a property with a public setter method. For instance cms.PrefetchPolicy.topicPrefetch will be used to set the value of the topic prefetch limit.
Subclasses can override this method to add more configuration options or to exclude certain parameters from being set via the properties object.
- Parameters
-
properties | The Properties object used to configure this object. |
- Exceptions
-
NumberFormatException | if a property that is numeric cannot be converted |
IllegalArgumentException | if a property can't be converted to the correct type. |
virtual int activemq::core::PrefetchPolicy::getDurableTopicPrefetch |
( |
| ) |
const |
|
pure virtual |
virtual int activemq::core::PrefetchPolicy::getMaxPrefetchLimit |
( |
int |
value | ) |
const |
|
pure virtual |
Given a requested value for a new prefetch limit, compare it against some max prefetch value and return either the requested value or the maximum allowable value for prefetch.
- Returns
- the allowable value for a prefetch limit, either requested or the max.
Implemented in activemq::core::policies::DefaultPrefetchPolicy.
virtual int activemq::core::PrefetchPolicy::getQueueBrowserPrefetch |
( |
| ) |
const |
|
pure virtual |
virtual int activemq::core::PrefetchPolicy::getQueuePrefetch |
( |
| ) |
const |
|
pure virtual |
virtual int activemq::core::PrefetchPolicy::getTopicPrefetch |
( |
| ) |
const |
|
pure virtual |
virtual void activemq::core::PrefetchPolicy::setDurableTopicPrefetch |
( |
int |
value | ) |
|
|
pure virtual |
virtual void activemq::core::PrefetchPolicy::setQueueBrowserPrefetch |
( |
int |
value | ) |
|
|
pure virtual |
virtual void activemq::core::PrefetchPolicy::setQueuePrefetch |
( |
int |
value | ) |
|
|
pure virtual |
virtual void activemq::core::PrefetchPolicy::setTopicPrefetch |
( |
int |
value | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: