7 #ifndef HA_LEASE_BACKLOG_H
8 #define HA_LEASE_BACKLOG_H
122 std::deque<std::pair<OpType, dhcp::LeasePtr> > outstanding_updates_;
131 #endif // HA_LEASE_BACKLOG_H
OpType
Type of the lease update (operation type).
boost::shared_ptr< Lease > LeasePtr
Pointer to the lease object.
void clear()
Removes all lease updates from the queue.
LeaseUpdateBacklog(const size_t limit)
Constructor.
bool push(const OpType op_type, const dhcp::LeasePtr &lease)
Appends lease update to the queue.
size_t size()
Returns the current size of the queue.
bool wasOverflown()
Checks if the queue was overflown.
Defines the logger used by the top-level component of kea-dhcp-ddns.
dhcp::LeasePtr pop(OpType &op_type)
Returns the next lease update and removes it from the queue.
Queue holding a backlog of unsent lease updates.