#include <senf/PPI/Queueing.hh>
QueueingDescipline derived classes define the generation of throttling notifications. The QueueingDiscipline is called whenever the packets are entered or removed from the queue. The queueing discipline then determines the new throttling state of the queue.
Definition at line 55 of file Queueing.hh.
Public Types |
|
enum | Event { ENQUEUE, DEQUEUE } |
enum | None_t { NONE } |
Public Member Functions |
|
virtual | ~QueueingDiscipline () |
virtual void | update (connector::GenericPassiveInput &input, Event event)=0 |
Calculate new queueing state. |
enum senf::ppi::QueueingDiscipline:: | ||||
Event | ||||
Definition at line 60 of file Queueing.hh.
enum senf::ppi::QueueingDiscipline:: | ||||
None_t | ||||
Definition at line 61 of file Queueing.hh.
senf::ppi::QueueingDiscipline:: | ||||
~QueueingDiscipline | () | |||
Definition at line 34 of file Queueing.cci.
virtual void senf::ppi::QueueingDiscipline:: | ||||
update | ( | connector::GenericPassiveInput & | input, | |
Event | event | ) | ||
Calculate new queueing 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::ThresholdQueueing.