RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
RTBKIT::FrequencyCapAugmentor Struct Reference

#include <augmentor_ex.h>

Inheritance diagram for RTBKIT::FrequencyCapAugmentor:
RTBKIT::SyncAugmentor RTBKIT::MultiThreadedAugmentor RTBKIT::Augmentor Datacratic::ServiceBase Datacratic::MessageLoop Datacratic::EventRecorder Datacratic::Epoller Datacratic::AsyncEventSource

List of all members.

Public Member Functions

 FrequencyCapAugmentor (std::shared_ptr< Datacratic::ServiceProxies > services, const std::string &serviceName, const std::string &augmentorName="frequency-cap-ex")
void init ()

Detailed Description

A Simple frequency cap augmentor which limits the number of times an ad can be shown to a specific user. It's multithreaded and connects to the following services:

Definition at line 44 of file augmentor_ex.h.


Constructor & Destructor Documentation

RTBKIT::FrequencyCapAugmentor::FrequencyCapAugmentor ( std::shared_ptr< Datacratic::ServiceProxies services,
const std::string &  serviceName,
const std::string &  augmentorName = "frequency-cap-ex" 
)

Note that the serviceName and augmentorName are distinct because you may have multiple instances of the service that provide the same augmentation.

Definition at line 76 of file augmentor_ex.cc.


Member Function Documentation

Sets up the internal components of the augmentor.

Note that SyncAugmentorBase is a MessageLoop so we can attach all our other service providers to our message loop to cut down on the number of polling threads which in turns reduces the number of context switches.

Reimplemented from RTBKIT::Augmentor.

Definition at line 97 of file augmentor_ex.cc.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator