/**
* Get mongo db stream collection
*
* @return \MongoCollection
*/
private function getCollection()
{
if (null === $this->collection) {
$this->collection = $this->mongoClient->selectCollection($this->dbName, $this->streamCollectionName);
$this->collection->setReadPreference(\MongoClient::RP_PRIMARY);
}
return $this->collection;
}