 |
Kea
1.5.0
|
Go to the documentation of this file.
10 #include <boost/date_time/posix_time/posix_time.hpp>
48 RateControl(
const int rate,
const int aggressivity);
56 boost::posix_time::ptime
getDue()
const {
int getAggressivity() const
Returns the value of aggressivity.
A message sending rate control class for perfdhcp.
int rate_
Holds a desired rate value.
void setAggressivity(const int aggressivity)
Sets the value of aggressivity.
bool late_sent_
A flag which indicates that the calculated due time is in the past.
static boost::posix_time::ptime currentTime()
Convenience function returning current time.
Defines the logger used by the top-level component of kea-dhcp-ddns.
int aggressivity_
Holds an aggressivity value.
bool isLateSent() const
Returns the value of the late send flag.
void setRelativeDue(const int offset)
Sets the value of the due time.
boost::posix_time::ptime send_due_
Holds a timestamp when the next message should be sent.
int getRate() const
Returns the rate.
void setRate(const int rate)
Sets the new rate.
boost::posix_time::ptime getDue() const
Returns current due time to send next message.
void updateSendTime()
Sets the timestamp of the last sent message to current time.
RateControl()
Default constructor.
uint64_t getOutboundMessageCount()
Returns number of messages to be sent "now".
boost::posix_time::ptime last_sent_
Holds a timestamp when the last message was sent.
void updateSendDue()
Calculates the send due.