_getReadProtocol() public method

public _getReadProtocol ( array $readPreference = [] )
$readPreference array
Ejemplo n.º 1
0
 private function fetchMoreDocuments()
 {
     $limit = $this->calculateNextRequestLimit();
     if ($this->end) {
         return;
     }
     $response = $this->client->_getReadProtocol($this->readPreference)->opGetMore($this->fcn, $limit, $this->cursorId, $this->queryTimeout);
     $this->setDocuments($response);
 }