Throttling discipline base class. More...
#include <senf/PPI/Throttling.hh>
Public Types | |
enum | Event { ENQUEUE, DEQUEUE } |
enum | None_t { NONE } |
Public Member Functions | |
virtual | ~ThrottlingDiscipline () |
virtual void | update (connector::GenericPassiveInput &input, Event event)=0 |
Calculate new throttling state. More... | |
Throttling discipline base class.
ThrottlingDiscipline derived classes define the generation of throttling notifications. The ThrottlingDiscipline is called whenever the packets are entered or removed from the queue. The throttling discipline then determines the new throttling state of the queue.
Definition at line 46 of file Throttling.hh.
Enumerator | |
---|---|
ENQUEUE | |
DEQUEUE |
Definition at line 51 of file Throttling.hh.
Enumerator | |
---|---|
NONE |
Definition at line 52 of file Throttling.hh.
|
virtual |
|
pure virtual |
Calculate new throttling state.
Whenever the queue is manipulated, this member is called to calculate the new throttling state. The member must call input's throttle()
or unthrottle()
member to set the new throttling state.
[in] | input | Connector holding the queue |
[in] | event | Type of event triggering the update |
Implemented in senf::ppi::ThresholdThrottling.