18#ifndef _ACTIVEMQ_CORE_REDELIVERYPOLICY_H_
19#define _ACTIVEMQ_CORE_REDELIVERYPOLICY_H_
#define AMQCPP_API
Definition: Config.h:30
Interface for a RedeliveryPolicy object that controls how message Redelivery is handled in ActiveMQ-C...
Definition: RedeliveryPolicy.h:34
virtual void setMaximumRedeliveryDelay(long long value)=0
Sets the maximum amount of time that the redelivery delay is allowed to increase to before it is capp...
virtual void setRedeliveryDelay(long long value)=0
Sets the time that redelivery will be delayed.
virtual long long getNextRedeliveryDelay(long long previousDelay)=0
Given the last used redelivery delay calculate the next value of the delay based on the settings in t...
virtual long long getRedeliveryDelay() const =0
Gets the time that redelivery of messages is delayed.
virtual double getBackOffMultiplier() const =0
virtual void configure(const decaf::util::Properties &properties)
Checks the supplied properties object for properties matching the configurable settings of this class...
virtual bool isUseCollisionAvoidance() const =0
virtual bool isUseExponentialBackOff() const =0
virtual long long getMaximumRedeliveryDelay() const =0
Returns the maximum amount of time that the redelivery delay is allowed to increase to before it is c...
virtual ~RedeliveryPolicy()
virtual long long getInitialRedeliveryDelay() const =0
Gets the initial time that redelivery of messages is delayed.
virtual void setBackOffMultiplier(double value)=0
Sets the Back-Off Multiplier for Message Redelivery.
virtual int getMaximumRedeliveries() const =0
Gets the Maximum number of allowed redeliveries for a message before it will be discarded by the cons...
virtual void setUseExponentialBackOff(bool value)=0
virtual void setInitialRedeliveryDelay(long long value)=0
Sets the initial time that redelivery will be delayed.
virtual RedeliveryPolicy * clone() const =0
Create a copy of this Policy and return it.
virtual short getCollisionAvoidancePercent() const =0
static const long long NO_MAXIMUM_REDELIVERIES
Definition: RedeliveryPolicy.h:37
virtual void setMaximumRedeliveries(int maximumRedeliveries)=0
Sets the Maximum allowable redeliveries for a Message.
virtual void setCollisionAvoidancePercent(short value)=0
virtual void setUseCollisionAvoidance(bool value)=0
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