mongo.get.timeout: Get the timeout value of a mongo connection

Description Usage Arguments Value See Also Examples

View source: R/mongo.R

Description

Get the timeout value for network operations on a mongo connection.

Usage

1

Arguments

mongo

(mongo) a mongo connection object.

Value

(integer) timeout value in milliseconds.

See Also

mongo.set.timeout,
mongo.create,
mongo.

Examples

1
2
3
4
5
6
7
mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
    mongo.set.timeout(mongo, 2000L)
    timeout <- mongo.get.timeout(mongo)
    if (timeout != 2000L)
        error("expected timeout of 2000");
}

jonkatz2/rmongodb documentation built on May 19, 2019, 7:30 p.m.