Interface ConjureClients.WithClientOptions<T>

Enclosing class:
ConjureClients

@CheckReturnValue public static interface ConjureClients.WithClientOptions<T>
Options which users may want to tune when building a client. Implementors of this interface are expected to return their own type as the type parameter T, so that calls to these methods can be chained. Intended to be immutable.
  • Method Details

    • withNodeSelectionStrategy

      T withNodeSelectionStrategy(NodeSelectionStrategy strategy)
      How should a client choose which URI to send requests to.
    • withFailedUrlCooldown

      T withFailedUrlCooldown(Duration duration)
      The amount of time a URL marked as failed should be avoided for subsequent calls. Implementations may ignore this value.
    • withClientQoS

      T withClientQoS(ClientConfiguration.ClientQoS value)
    • withServerQoS

      T withServerQoS(ClientConfiguration.ServerQoS value)
    • withRetryOnTimeout

      T withRetryOnTimeout(ClientConfiguration.RetryOnTimeout value)
    • withSecurityProvider

      T withSecurityProvider(Provider securityProvider)
    • withMaxNumRetries

      T withMaxNumRetries(int maxNumRetries)
    • withTaggedMetrics

      T withTaggedMetrics(com.palantir.tritium.metrics.registry.TaggedMetricRegistry metrics)
    • withUserAgent

      T withUserAgent(com.palantir.conjure.java.api.config.service.UserAgent agent)
    • withHostEventsSink

      T withHostEventsSink(HostEventsSink hostEventsSink)
      Per-host success/failure information will be recorded to this sink.
    • withConjureErrorParameterFormat

      T withConjureErrorParameterFormat(com.palantir.conjure.java.api.errors.ConjureErrorParameterFormat format)