driver-legacy/src/main/com/mongodb/DBCursor.java
@Deprecated
    public DBCursor setOptions(final int options) {
        if ((options & Bytes.QUERYOPTION_EXHAUST) != 0) {
            throw new UnsupportedOperationException("exhaust query option is not supported");
        }
        this.options = options;
        return this;
    }
@Deprecated
    public DBCursor setOptions(final int options) {
        if ((options & Bytes.QUERYOPTION_EXHAUST) != 0) {
            throw new UnsupportedOperationException("exhaust query option is not supported");
        }
        this.options = options;
        return this;
    }
@ Deprecated public DBCursor setOptions ( final int options ) { if ( ( options & Bytes . QUERYOPTION_EXHAUST ) != 0 ) { throw new UnsupportedOperationException ( "exhaust query option is not supported" ) ; } this . options = options ; return this ; }
Sets the query option - see Bytes.QUERYOPTION_* for list.

@param options the bitmask of options
@return {@code this} so calls can be chained
@see Bytes
@mongodb.driver.manual ../meta-driver/latest/legacy/mongodb-wire-protocol/#op-query Query Flags
Sets the query option - see Bytes . QUERYOPTION_ * for list .