PeerSelectionInitiator Class Referenceabstract

Interface for those who need a list of peers to forward a request to. More...

#include <PeerSelectState.h>

Inheritance diagram for PeerSelectionInitiator:
Collaboration diagram for PeerSelectionInitiator:

Public Member Functions

virtual ~PeerSelectionInitiator ()=default
virtual void noteDestination (Comm::ConnectionPointer path)=0
 called when a new unique destination has been found More...
virtual void noteDestinationsEnd (ErrorState *error)=0
void startSelectingDestinations (HttpRequest *request, const AccessLogEntry::Pointer &ale, StoreEntry *entry)
virtual void * toCbdata ()=0

Public Attributes

bool subscribed = false
 whether noteDestination() and noteDestinationsEnd() calls are allowed More...

Detailed Description

Definition at line 32 of file PeerSelectState.h.

Constructor & Destructor Documentation

◆ ~PeerSelectionInitiator()

virtual PeerSelectionInitiator::~PeerSelectionInitiator ( )

Member Function Documentation

◆ noteDestination()

virtual void PeerSelectionInitiator::noteDestination ( Comm::ConnectionPointer  path)
pure virtual

Implemented in TunnelStateData, and FwdState.

◆ noteDestinationsEnd()

virtual void PeerSelectionInitiator::noteDestinationsEnd ( ErrorState error)
pure virtual

called when there will be no more noteDestination() calls

erroris a possible reason why no destinations were found; it is guaranteed to be nil if there was at least one noteDestination() call

Implemented in TunnelStateData, and FwdState.

◆ startSelectingDestinations()

void PeerSelectionInitiator::startSelectingDestinations ( HttpRequest request,
const AccessLogEntry::Pointer ale,
StoreEntry entry 

Initiates asynchronous peer selection that eventually results in zero or more noteDestination() calls and exactly one noteDestinationsEnd() call.

Definition at line 335 of file

References peerSelect(), request(), and subscribed.

Referenced by FwdState::start(), and tunnelStart().

◆ toCbdata()

virtual void* CbdataParent::toCbdata ( )
pure virtualinherited

Member Data Documentation

◆ subscribed

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






Web Site Translations