C++ Actor Framework 0.18
|
Computes credit for an attached source. More...
#include <credit_controller.hpp>
Classes | |
struct | calibration |
Wraps an assignment of the controller to its source. More... | |
Public Member Functions | |
virtual void | before_processing (downstream_msg::batch &batch)=0 |
Called before processing the batch x in order to allow the controller to keep statistics on incoming batches. | |
virtual calibration | init ()=0 |
Returns an initial calibration for the path. | |
virtual calibration | calibrate ()=0 |
Computes a credit assignment to the source after crossing the low-threshold. | |
Computes credit for an attached source.
|
pure virtual |
Called before processing the batch x
in order to allow the controller to keep statistics on incoming batches.
Implemented in caf::detail::token_based_credit_controller.
|
pure virtual |
Computes a credit assignment to the source after crossing the low-threshold.
May assign zero credit.
Implemented in caf::detail::size_based_credit_controller, and caf::detail::token_based_credit_controller.
|
pure virtual |
Returns an initial calibration for the path.
Implemented in caf::detail::size_based_credit_controller, and caf::detail::token_based_credit_controller.