![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Types | |
typedef std::function< void(std::string, std::shared_ptr< const AgentConfig >)> | OnConfigChange |
typedef std::function< void(const AgentConfigEntry &info)> | OnAgentFn |
Public Member Functions | |
AgentConfigurationListener (std::shared_ptr< zmq::context_t > context) | |
void | init (std::shared_ptr< ConfigurationService > config) |
void | start () |
void | shutdown () |
void | forEachAgent (const OnAgentFn &onAgent) const |
void | forEachAccountAgent (const AccountKey &account, const OnAgentFn &onAgent) const |
AgentConfigEntry | getAgentEntry (const std::string &agent) const |
Public Attributes | |
OnConfigChange | onConfigChange |
Definition at line 48 of file agent_configuration_listener.h.
typedef std::function<void (std::string, std::shared_ptr<const AgentConfig>)> RTBKIT::AgentConfigurationListener::OnConfigChange |
Type of function to be called on a configuration change. If an agent has disappeared, the config pointer will be null.
Definition at line 64 of file agent_configuration_listener.h.
void RTBKIT::AgentConfigurationListener::forEachAccountAgent | ( | const AccountKey & | account, |
const OnAgentFn & | onAgent | ||
) | const |
Call the given callback for each agent that is bidding on the given account.
Definition at line 32 of file agent_configuration_listener.cc.
void RTBKIT::AgentConfigurationListener::forEachAgent | ( | const OnAgentFn & | onAgent | ) | const |
Call the given callback for each agent.
Definition at line 21 of file agent_configuration_listener.cc.
AgentConfigEntry RTBKIT::AgentConfigurationListener::getAgentEntry | ( | const std::string & | agent | ) | const |
Find the information entry for the given agent. All elements are guaranteed to be valid until the object is destroyed.
Definition at line 50 of file agent_configuration_listener.cc.