public FindOptions maxAwaitTime(final long maxAwaitTime, final TimeUnit timeUnit) {
    """
	Sets the maximum await execution time on the server for this operation.
	
	@param maxAwaitTime  the max await time.  A zero value will be ignored, and indicates that the driver should respect the server's
	default value
	@param timeUnit the time unit, which may not be null
	@return this
	@since 3.2
	@mongodb.driver.manual reference/method/cursor.maxTimeMS/#cursor.maxTimeMS Max Time
    """
        notNull("timeUnit", timeUnit);
        isTrueArgument("maxAwaitTime > = 0", maxAwaitTime >= 0);
        this.maxAwaitTimeMS = TimeUnit.MILLISECONDS.convert(maxAwaitTime, timeUnit);
        return this;
    }
public FindOptions maxAwaitTime(final long maxAwaitTime, final TimeUnit timeUnit) {
        notNull("timeUnit", timeUnit);
        isTrueArgument("maxAwaitTime > = 0", maxAwaitTime >= 0);
        this.maxAwaitTimeMS = TimeUnit.MILLISECONDS.convert(maxAwaitTime, timeUnit);
        return this;
    }
public FindOptions maxAwaitTime ( final long maxAwaitTime , final TimeUnit timeUnit ) { notNull ( "timeUnit" , timeUnit ) ; isTrueArgument ( "maxAwaitTime > = 0" , maxAwaitTime >= 0 ) ; this . maxAwaitTimeMS = TimeUnit . MILLISECONDS . convert ( maxAwaitTime , timeUnit ) ; return this ; }
Sets the maximum await execution time on the server for this operation.

@param maxAwaitTime  the max await time.  A zero value will be ignored, and indicates that the driver should respect the server's
default value
@param timeUnit the time unit, which may not be null
@return this
@since 3.2
@mongodb.driver.manual reference/method/cursor.maxTimeMS/#cursor.maxTimeMS Max Time
Sets the maximum await execution time on the server for this operation .