proxygen
proxygen::ServiceConfiguration Class Reference

#include <ServiceConfiguration.h>

Public Member Functions

 ServiceConfiguration ()
 
virtual ~ServiceConfiguration ()
 
void setAcceptors (const std::list< AcceptorConfiguration > &acceptors)
 
const std::list< AcceptorConfiguration > & getAcceptors () const
 
void setWriteBufferLimit (uint64_t size)
 
uint64_t getWriteBufferLimit () const
 
void setTakeoverEnabled (bool enabled)
 
bool takeoverEnabled () const
 

Private Attributes

std::list< AcceptorConfigurationacceptors_
 
uint64_t writeBufferLimit_
 
bool takeoverEnabled_
 

Detailed Description

Base class for all the Configuration objects

Definition at line 19 of file ServiceConfiguration.h.

Constructor & Destructor Documentation

proxygen::ServiceConfiguration::ServiceConfiguration ( )
inline
virtual proxygen::ServiceConfiguration::~ServiceConfiguration ( )
inlinevirtual

Definition at line 25 of file ServiceConfiguration.h.

25 {}

Member Function Documentation

const std::list<AcceptorConfiguration>& proxygen::ServiceConfiguration::getAcceptors ( ) const
inline

Definition at line 35 of file ServiceConfiguration.h.

References acceptors_.

35  {
36  return acceptors_;
37  }
std::list< AcceptorConfiguration > acceptors_
uint64_t proxygen::ServiceConfiguration::getWriteBufferLimit ( ) const
inline

Definition at line 44 of file ServiceConfiguration.h.

References writeBufferLimit_.

void proxygen::ServiceConfiguration::setAcceptors ( const std::list< AcceptorConfiguration > &  acceptors)
inline

Set/get the list of acceptors that will be receiving traffic.

Definition at line 30 of file ServiceConfiguration.h.

References acceptors_.

31  {
32  acceptors_.clear();
33  acceptors_.insert(acceptors_.begin(), acceptors.begin(), acceptors.end());
34  }
std::list< AcceptorConfiguration > acceptors_
void proxygen::ServiceConfiguration::setTakeoverEnabled ( bool  enabled)
inline

Set/get whether or not we should enable socket takeover

Definition at line 49 of file ServiceConfiguration.h.

References takeoverEnabled_.

void proxygen::ServiceConfiguration::setWriteBufferLimit ( uint64_t  size)
inline

Set/get the amount of data that we're allowed to buffer in-memory before back-pressuring the other end of an HTTP connection.

Definition at line 43 of file ServiceConfiguration.h.

References folly::size(), and writeBufferLimit_.

constexpr auto size(C const &c) -> decltype(c.size())
Definition: Access.h:45
bool proxygen::ServiceConfiguration::takeoverEnabled ( ) const
inline

Definition at line 50 of file ServiceConfiguration.h.

References takeoverEnabled_.

Member Data Documentation

std::list<AcceptorConfiguration> proxygen::ServiceConfiguration::acceptors_
private

Definition at line 53 of file ServiceConfiguration.h.

Referenced by getAcceptors(), and setAcceptors().

bool proxygen::ServiceConfiguration::takeoverEnabled_
private

Definition at line 55 of file ServiceConfiguration.h.

Referenced by setTakeoverEnabled(), and takeoverEnabled().

uint64_t proxygen::ServiceConfiguration::writeBufferLimit_
private

Definition at line 54 of file ServiceConfiguration.h.

Referenced by getWriteBufferLimit(), and setWriteBufferLimit().


The documentation for this class was generated from the following file: