18#ifndef _ACTIVEMQ_CORE_PREFETCHPOLICY_H_
19#define _ACTIVEMQ_CORE_PREFETCHPOLICY_H_
#define AMQCPP_API
Definition: Config.h:30
Interface for a Policy object that controls message Prefetching on various destination types in Activ...
Definition: PrefetchPolicy.h:34
virtual void setQueuePrefetch(int value)=0
Sets the amount of prefetched messages for a Queue.
virtual int getTopicPrefetch() const =0
Gets the amount of messages to prefetch for a Topic.
virtual void setDurableTopicPrefetch(int value)=0
Sets the amount of prefetched messages for a Durable Topic.
virtual ~PrefetchPolicy()
virtual int getQueueBrowserPrefetch() const =0
Gets the amount of messages to prefetch for a Queue Browser.
virtual void setTopicPrefetch(int value)=0
Sets the amount of prefetched messages for a Topic.
virtual void configure(const decaf::util::Properties &properties)
Checks the supplied properties object for properties matching the configurable settings of this class...
virtual PrefetchPolicy * clone() const =0
Clone the Policy and return a new pointer to that clone.
virtual void setQueueBrowserPrefetch(int value)=0
Sets the amount of prefetched messages for a Queue Browser.
virtual void setAll(int value)
Sets the prefetch value on all available prefetch configuration options.
virtual int getDurableTopicPrefetch() const =0
Gets the amount of messages to prefetch for a Durable Topic.
virtual int getMaxPrefetchLimit(int value) const =0
Given a requested value for a new prefetch limit, compare it against some max prefetch value and retu...
virtual int getQueuePrefetch() const =0
Gets the amount of messages to prefetch for a Queue.
Java-like properties class for mapping string names to string values.
Definition: Properties.h:53
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: CachedConsumer.h:24