/** * The server normally times out idle cursors after an inactivity period (10 minutes) * to prevent excess memory use. If true, that timeout is disabled. * * @return true if cursor timeout is disabled */ public boolean isNoCursorTimeout() { return options.isNoCursorTimeout(); }
return false; if (dbOptions.isNoCursorTimeout() != that.isNoCursorTimeout()) { return false;
assertEquals(new BasicDBObject("field", -1), options.getSort()); assertEquals(CursorType.TailableAwait, options.getCursorType()); assertTrue(options.isNoCursorTimeout()); assertTrue(options.isOplogReplay()); assertTrue(options.isPartial());
operation.noCursorTimeout(true); } else { operation.noCursorTimeout(findOptions.isNoCursorTimeout());
/** * The server normally times out idle cursors after an inactivity period (10 minutes) * to prevent excess memory use. If true, that timeout is disabled. * * @return true if cursor timeout is disabled */ public boolean isNoCursorTimeout() { return options.isNoCursorTimeout(); }
return false; if (dbOptions.isNoCursorTimeout() != that.isNoCursorTimeout()) { return false;
operation.noCursorTimeout(true); } else { operation.noCursorTimeout(findOptions.isNoCursorTimeout());