@Test public void minimallySpecifiedRetryingParametersShouldMatchLegacyBehaviour() { ClientOptions clientOptions = ClientOptions.fromRemotingParameters(AuxiliaryRemotingParameters.builder() .shouldLimitPayload(true) .shouldRetry(true) .userAgent(USER_AGENT) .build()); assertThat(clientOptions).isEqualTo(DEFAULT_RETRYING); }
static ClientOptions fromRemotingParameters(AuxiliaryRemotingParameters parameters) { ImmutableClientOptions.Builder builder = ImmutableClientOptions.builder(); setupTimeouts(builder, parameters); setupRetrying(builder, parameters); return builder.clientQoS(ClientConfiguration.ClientQoS.DANGEROUS_DISABLE_SYMPATHETIC_CLIENT_QOS) .build(); }
ClientOptions { static ClientOptions fromRemotingParameters(AuxiliaryRemotingParameters parameters) { ImmutableClientOptions.Builder builder = ImmutableClientOptions.builder(); setupTimeouts(builder, parameters); setupRetrying(builder, parameters); return builder.clientQoS(ClientConfiguration.ClientQoS.DANGEROUS_DISABLE_SYMPATHETIC_CLIENT_QOS) .build(); } }
ClientOptions { static ClientOptions fromRemotingParameters(AuxiliaryRemotingParameters parameters) { ImmutableClientOptions.Builder builder = ImmutableClientOptions.builder(); setupTimeouts(builder, parameters); setupRetrying(builder, parameters); return builder.clientQoS(ClientConfiguration.ClientQoS.DANGEROUS_DISABLE_SYMPATHETIC_CLIENT_QOS) .build(); }  }
ClientOptions { static ClientOptions fromRemotingParameters(AuxiliaryRemotingParameters parameters) { ImmutableClientOptions.Builder builder = ImmutableClientOptions.builder(); setupTimeouts(builder, parameters); setupRetrying(builder, parameters); return builder.clientQoS(ClientConfiguration.ClientQoS.DANGEROUS_DISABLE_SYMPATHETIC_CLIENT_QOS) .build(); }  abstract Duration connectTimeout(); abstract Duration readTimeout(); abstract Duration backoffSlotSize(); abstract Duration failedUrlCooldown(); abstract int maxNumRetries(); @Value.Default ClientConfiguration.ClientQoS clientQoS(); @Value.Default ClientConfiguration.ServerQoS serverQoS(); ClientConfiguration serverListToClient(ServerListConfig serverConfig); ClientConfiguration create(
            List<String> endpointUris,
            Optional<ProxySelector> proxy,
            TrustContext trustContext); static ClientOptions of(Duration connect, Duration read, Duration backoff, Duration coolDown, int retries); }
ClientOptions { static ClientOptions fromRemotingParameters(AuxiliaryRemotingParameters parameters) { ImmutableClientOptions.Builder builder = ImmutableClientOptions.builder(); setupTimeouts(builder, parameters); setupRetrying(builder, parameters); return builder.clientQoS(ClientConfiguration.ClientQoS.DANGEROUS_DISABLE_SYMPATHETIC_CLIENT_QOS) .build(); }  abstract Duration connectTimeout(); abstract Duration readTimeout(); abstract Duration backoffSlotSize(); abstract Duration failedUrlCooldown(); abstract int maxNumRetries(); @Value.Default ClientConfiguration.ClientQoS clientQoS(); @Value.Default ClientConfiguration.ServerQoS serverQoS(); ClientConfiguration serverListToClient(ServerListConfig serverConfig); ClientConfiguration create(
            List<String> endpointUris,
            Optional<ProxySelector> proxy,
            TrustContext trustContext); static ClientOptions of(Duration connect, Duration read, Duration backoff, Duration coolDown, int retries);  }