public static ConditionFactory waitAtMost(long value, TimeUnit unit) {
    """
	An alternative to using {@link #await()} if you want to specify a timeout
	directly.
	
	@param value the value
	@param unit  the unit
	@return the condition factory
    """
        return new ConditionFactory(null, defaultWaitConstraint.withMaxWaitTime(new Duration(value, unit)), defaultPollInterval, defaultPollDelay,
                defaultCatchUncaughtExceptions, defaultExceptionIgnorer, defaultConditionEvaluationListener,
                defaultExecutorLifecycle);
    }
public static ConditionFactory waitAtMost(long value, TimeUnit unit) {
        return new ConditionFactory(null, defaultWaitConstraint.withMaxWaitTime(new Duration(value, unit)), defaultPollInterval, defaultPollDelay,
                defaultCatchUncaughtExceptions, defaultExceptionIgnorer, defaultConditionEvaluationListener,
                defaultExecutorLifecycle);
    }
public static ConditionFactory waitAtMost ( long value , TimeUnit unit ) { return new ConditionFactory ( null , defaultWaitConstraint . withMaxWaitTime ( new Duration ( value , unit ) ) , defaultPollInterval , defaultPollDelay , defaultCatchUncaughtExceptions , defaultExceptionIgnorer , defaultConditionEvaluationListener , defaultExecutorLifecycle ) ; }
An alternative to using {@link #await()} if you want to specify a timeout
directly.

@param value the value
@param unit  the unit
@return the condition factory
An alternative to using { @link #await () } if you want to specify a timeout directly .