#include <DelayId.h>
Public Member Functions | |
DelayId () | |
DelayId (unsigned short) | |
~DelayId () | |
unsigned short | pool () const |
DelayIdComposite::Pointer | compositePosition () |
DelayIdComposite::Pointer const | compositePosition () const |
void | compositePosition (DelayIdComposite::Pointer) |
bool | operator== (DelayId const &rhs) const |
operator bool () const | |
int | bytesWanted (int min, int max) const |
void | bytesIn (int qty) |
void | setNoDelay (bool const) |
void | delayRead (const AsyncCallPointer &) |
Static Public Member Functions | |
static DelayId | DelayClient (ClientHttpRequest *, HttpReply *reply=nullptr) |
Private Attributes | |
unsigned short | pool_ |
DelayIdComposite::Pointer | compositeId |
bool | markedAsNoDelay |
Detailed Description
Constructor & Destructor Documentation
◆ DelayId() [1/2]
DelayId::DelayId | ( | ) |
Definition at line 28 of file DelayId.cc.
Referenced by DelayClient().
◆ DelayId() [2/2]
DelayId::DelayId | ( | unsigned short | aPool | ) |
Definition at line 31 of file DelayId.cc.
References debugs.
◆ ~DelayId()
DelayId::~DelayId | ( | ) |
Definition at line 37 of file DelayId.cc.
Member Function Documentation
◆ bytesIn()
void DelayId::bytesIn | ( | int | qty | ) |
Definition at line 151 of file DelayId.cc.
References assert, DelayIdComposite::bytesIn(), compositeId, markedAsNoDelay, and pool().
Referenced by Ftp::Client::dataRead(), and HttpStateData::readReply().
◆ bytesWanted()
Definition at line 129 of file DelayId.cc.
References DelayIdComposite::bytesWanted(), compositeId, markedAsNoDelay, and max().
Referenced by store_client::bytesWanted(), and MemObject::mostBytesWanted().
◆ compositePosition() [1/3]
DelayIdComposite::Pointer DelayId::compositePosition | ( | ) |
Referenced by DelayClient().
◆ compositePosition() [2/3]
DelayIdComposite::Pointer const DelayId::compositePosition | ( | ) | const |
◆ compositePosition() [3/3]
void DelayId::compositePosition | ( | DelayIdComposite::Pointer | newPosition | ) |
Definition at line 41 of file DelayId.cc.
References compositeId.
◆ DelayClient()
|
static |
Definition at line 68 of file DelayId.cc.
References DelayId(), Acl::Answer::allowed(), assert, HttpRequest::auth_user_request, HttpRequest::client_addr, clientAclChecklistFill(), compositePosition(), Config, DBG_IMPORTANT, debugs, DelayPools::delay_data, SquidConfig::delay_pool_uses_indirect_client, ACLChecklist::fastCheck(), HTTPMSGLOCK(), HttpRequest::indirect_client_addr, Ip::Address::isNoAddr(), SquidConfig::onoff, pool(), DelayPools::pools(), ACLFilledChecklist::reply, ClientHttpRequest::request, ACLFilledChecklist::src_addr, StringToSBuf(), HttpRequest::tag, and CompositePoolNode::CompositeSelectionDetails::user.
Referenced by Ssl::ServerBump::ServerBump(), clientReplyContext::createStoreEntry(), clientReplyContext::doGetMoreData(), clientReplyContext::processExpired(), clientReplyContext::sendMoreData(), clientReplyContext::setReplyToStoreEntry(), statClientRequests(), switchToTunnel(), and tunnelStart().
◆ delayRead()
void DelayId::delayRead | ( | const AsyncCallPointer & | aRead | ) |
Definition at line 166 of file DelayId.cc.
References assert, compositeId, and DelayIdComposite::delayRead().
◆ operator bool()
DelayId::operator bool | ( | ) | const |
Definition at line 61 of file DelayId.cc.
References RefCount< C >::getRaw().
◆ operator==()
bool DelayId::operator== | ( | DelayId const & | rhs | ) | const |
Definition at line 53 of file DelayId.cc.
References compositeId, and pool_.
◆ pool()
unsigned short DelayId::pool | ( | ) | const |
Definition at line 47 of file DelayId.cc.
References pool_.
Referenced by bytesIn(), and DelayClient().
◆ setNoDelay()
void DelayId::setNoDelay | ( | bool const | newValue | ) |
Definition at line 119 of file DelayId.cc.
References markedAsNoDelay.
Member Data Documentation
◆ compositeId
|
private |
Definition at line 42 of file DelayId.h.
Referenced by bytesIn(), bytesWanted(), compositePosition(), delayRead(), and operator==().
◆ markedAsNoDelay
|
private |
Definition at line 43 of file DelayId.h.
Referenced by bytesIn(), bytesWanted(), and setNoDelay().
◆ pool_
|
private |
Definition at line 41 of file DelayId.h.
Referenced by operator==(), and pool().
The documentation for this class was generated from the following files:
- src/DelayId.h
- src/DelayId.cc
- src/tests/stub_DelayId.cc