Uses of Class
com.shri.restinpeace.RipClientConfig.Builder
Packages that use RipClientConfig.Builder
-
Uses of RipClientConfig.Builder in com.shri.restinpeace
Methods in com.shri.restinpeace that return RipClientConfig.BuilderModifier and TypeMethodDescriptionSets the runtime base URL.static RipClientConfig.BuilderRipClientConfig.builder()Starts building a new config.RipClientConfig.Builder.bulkhead(BulkheadConfig bulkhead) Sets this client's bulkhead - caps how many calls to this client can be in flight at once, so one slow or hung downstream can't starve every other call sharing the same connection pool/thread capacity.RipClientConfig.Builder.bulkhead(BulkheadProvider bulkheadProvider) Sets this client's bulkhead to delegate its admission decision to an already-running external bulkhead instance (resilience4j or otherwise) instead of RIP's own built-inBulkheadConfig-drivenSemaphore.Sets theCachefor this client, overriding the shared default set viaRIP.setCache(Cache)for this client only.RipClientConfig.Builder.cacheKeyIncludesQueryString(boolean cacheKeyIncludesQueryString) Sets whether this client's cache key includes the request's query string, overriding the shared default set viaRIP.setCacheKeyIncludesQueryString(boolean)(itselftrueby default, matching RIP's own established behavior) for this client only.RipClientConfig.Builder.circuitBreaker(CircuitBreakerConfig circuitBreaker) Sets this client's circuit breaker - stops even attempting calls to this client once its failure rate crosses a threshold, for a cooldown period, instead of paying the cost of finding out each one would have failed too.RipClientConfig.Builder.circuitBreaker(CircuitBreakerProvider circuitBreakerProvider) Sets this client's circuit breaker to delegate its open/closed decision to an already-running external breaker instance (resilience4j or otherwise) instead of RIP's own built-inCircuitBreakerConfig-driven state machine.RipClientConfig.Builder.connectTimeoutMillis(int connectTimeoutMillis) Sets the connect timeout.RipClientConfig.Builder.interceptors(List<RequestInterceptor> interceptors) Sets this client's own interceptors, run in addition to (not instead of) every globally registeredinterceptor- for a concern specific to this one client (e.g. this service's own auth scheme) instead of every call RIP ever makes.RipClientConfig.Builder.negativeCacheTtlMillis(long ttlMillis) Opts this client into negatively caching a confirmed404, overriding the shared default set viaRIP.setNegativeCacheTtlMillis(long)for this client only - so a client that already asked once for a resource that doesn't exist stops hammering the downstream asking again, forttlMillis- regardless of whether the404response itself carries anyCache-Control/ETag/Last-Modifiedat all (unlike every other cached status, which is only ever stored when the server's own headers say so).RipClientConfig.Builder.objectMapper(kong.unirest.ObjectMapper objectMapper) Sets the JSONObjectMapperfor this client.Sets an unauthenticated proxy.Sets an authenticated proxy.RipClientConfig.Builder.readTimeoutMillis(int readTimeoutMillis) Sets the read (socket) timeout.RipClientConfig.Builder.retry(RetryConfig retry) Sets this client's default retry policy - applied to a call whose method (and interface) has no@Retryof its own, which always wins over this when present.RipClientConfig.Builder.retryBudget(int maxRetries, long windowMillis) Caps the *total* number of retries this client performs across every call within a rolling window - not a per-call limit, which is still each call's own@Retry#times()(or this config'sretry(RetryConfig)default).