protected static void applyBaseDefaultsInternal ( final RequestOptions modifiedOptions ) { Utility . assertNotNull ( "modifiedOptions" , modifiedOptions ) ; if ( modifiedOptions . getRetryPolicyFactory ( ) == null ) { modifiedOptions . setRetryPolicyFactory ( new RetryExponentialRetry ( ) ) ; } if ( modifiedOptions . getLocationMode ( ) == null ) { modifiedOptions . setLocationMode ( LocationMode . PRIMARY_ONLY ) ; } }
Populates the default timeout retry policy and location mode from client if they are null .