@Override public GridFSFindIterable noCursorTimeout(final boolean noCursorTimeout) { underlying.noCursorTimeout(noCursorTimeout); return this; }
.cursorType(CursorType.TailableAwait).noCursorTimeout(true);
cursorToUse = cursorToUse.noCursorTimeout(true); break; case PARTIAL:
.sort(new Document("$natural", 1)) .oplogReplay(true) // tells Mongo to not rely on indexes .noCursorTimeout(true) // don't timeout waiting for events .cursorType(CursorType.TailableAwait);
.cursorType(CursorType.TailableAwait).noCursorTimeout(true);
@Override public GridFSFindIterable noCursorTimeout(final boolean noCursorTimeout) { underlying.noCursorTimeout(noCursorTimeout); return this; }
@Override public GridFSFindIterable noCursorTimeout(final boolean noCursorTimeout) { underlying.noCursorTimeout(noCursorTimeout); return this; }
cursorToUse = cursorToUse.noCursorTimeout(true); break; case PARTIAL:
@Test public void testCursorOptionNoTimeout() throws Exception { try (MongoCursor<Document> cursor = collection.find().noCursorTimeout(true).iterator()) { assertThat(cursor.hasNext()).isFalse(); } }
ret.noCursorTimeout(true); } else { ret.maxAwaitTime(timeout, TimeUnit.MILLISECONDS);
.projection(MongoBsonTranslator.translate(projection)) .cursorType(toCursorType(queryOptions)) .noCursorTimeout(queryOptions.isNoCursorTimeout()) .oplogReplay(queryOptions.isOplogReplay()); return new WrappedMongoCursor(
.projection(MongoBsonTranslator.translate(projection)) .cursorType(toCursorType(queryOptions)) .noCursorTimeout(queryOptions.isNoCursorTimeout()) .oplogReplay(queryOptions.isOplogReplay()); return new WrappedMongoCursor(