_getReadProtocol() 공개 메소드

public _getReadProtocol ( array $readPreference = [] )
$readPreference array
예제 #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);
 }