Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Sokil
Mongo
Cursor
setClientTimeout
Sokil\Mongo\Cursor::setClientTimeout PHP Method
Cursor Class Documentation
Datei anzeigen
Open project: sokil/php-mongo
setClientTimeout()
public
method
Instructs the driver to stop waiting for a response and throw a MongoCursorTimeoutException after a set time, A timeout can be set at any time and will affect subsequent queries on the cursor, including fetching more results from the database.
public
setClientTimeout
(
type
$ms
) :
Cursor
$ms
type
return
Cursor
public function setClientTimeout($ms) { $this->options['clientTimeout'] = (int) $ms; return $this; }
Cursor
__call
__construct
asArray
asObject
byId
byIdList
copyToCollection
count
current
explain
expression
field
fields
filter
findAll
findAndRemove
findAndUpdate
findOne
findRandom
getCursor
getExpression
getHash
getIdList
getMongoQuery
getOption
getReadPreference
getResultSet
hint
isDocumentPoolUsed
isResultAsArray
key
limit
limitedCount
map
mixedToMongoIdList
moveToCollection
next
paginate
pluck
pluckDotNoteted
query
readNearest
readPrimaryOnly
readPrimaryPreferred
readSecondaryOnly
readSecondaryPreferred
rewind
setBatchSize
setClientTimeout
setServerTimeout
skip
skipDocumentPool
skipField
skipFields
slice
sort
useDocumentPool
valid