driver-core/src/main/com/mongodb/operation/AggregateOperation.java
public AggregateOperation<T> maxAwaitTime(final long maxAwaitTime, final TimeUnit timeUnit) {
        wrapped.maxAwaitTime(maxAwaitTime, timeUnit);
        return this;
    }
public AggregateOperation<T> maxAwaitTime(final long maxAwaitTime, final TimeUnit timeUnit) {
        wrapped.maxAwaitTime(maxAwaitTime, timeUnit);
        return this;
    }
public AggregateOperation < T > maxAwaitTime ( final long maxAwaitTime , final TimeUnit timeUnit ) { wrapped . maxAwaitTime ( maxAwaitTime , timeUnit ) ; return this ; }
Sets the maximum await execution time on the server for this operation.

@param maxAwaitTime  the max await time.  A value less than one 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
@mongodb.server.release 3.6
Sets the maximum await execution time on the server for this operation .