Uses of Interface
ai.vespa.feed.client.FeedClientBuilder
-
Uses of FeedClientBuilder in ai.vespa.feed.client
Modifier and TypeMethodDescriptionFeedClientBuilder.addProxyRequestHeader
(String name, String value) Adds HTTP request header to all proxy requests.FeedClientBuilder.addProxyRequestHeader
(String name, Supplier<String> valueSupplier) Adds HTTP request header to all proxy requests.FeedClientBuilder.addRequestHeader
(String name, String value) Adds HTTP request header to all client requests.FeedClientBuilder.addRequestHeader
(String name, Supplier<String> valueSupplier) Adds HTTP request header to all client requests.static FeedClientBuilder
Creates a builder for a single feed container endpoint.static FeedClientBuilder
Creates a builder which distributes the feed across the given feed container endpoints.FeedClientBuilder.noBenchmarking()
Turns off benchmarking.FeedClientBuilder.setCaCertificates
(Collection<X509Certificate> caCertificates) Overrides JVM default SSL truststoreFeedClientBuilder.setCaCertificatesFile
(Path caCertificatesFile) Overrides JVM default SSL truststoreFeedClientBuilder.setCertificate
(Path certificatePemFile, Path privateKeyPemFile) Sets path to client SSL certificate/key PEM filesFeedClientBuilder.setCertificate
(X509Certificate certificate, PrivateKey privateKey) Sets client SSL certificate/keyFeedClientBuilder.setCertificate
(Collection<X509Certificate> certificate, PrivateKey privateKey) Sets client SSL certificates/keyFeedClientBuilder.setCircuitBreaker
(FeedClient.CircuitBreaker breaker) Overrides default circuit breaker.FeedClientBuilder.setCompression
(FeedClientBuilder.Compression compression) What compression to use for request bodies; defaultauto
.FeedClientBuilder.setConnectionsPerEndpoint
(int max) Sets the number of connections this client will use per endpoint.FeedClientBuilder.setConnectionTimeToLive
(Duration ttl) Sets a duration after which this client will recycle active connections.FeedClientBuilder.setDryrun
(boolean enabled) Turns on dryrun mode, where each operation succeeds after a given delay, rather than being sent across the network.FeedClientBuilder.setEndpointUris
(List<URI> endpoints) Overrides endpoint URIs for this clientFeedClientBuilder.setHostnameVerifier
(HostnameVerifier verifier) SetsHostnameVerifier
instance (e.g for disabling default SSL hostname verification).FeedClientBuilder.setMaxStreamPerConnection
(int max) Sets the maximum number of streams per HTTP/2 connection for this client.Specify HTTP(S) proxy for all endpointsFeedClientBuilder.setProxyCaCertificates
(Collection<X509Certificate> caCertificates) Overrides JVM default SSL truststore for proxyFeedClientBuilder.setProxyCaCertificatesFile
(Path caCertificatesFile) Overrides JVM default SSL truststore for proxyFeedClientBuilder.setProxyHostnameVerifier
(HostnameVerifier verifier) SetsHostnameVerifier
instance for proxy (e.g for disabling default SSL hostname verification).FeedClientBuilder.setRetryStrategy
(FeedClient.RetryStrategy strategy) Overrides default retry strategy.FeedClientBuilder.setSpeedTest
(boolean enabled) Turns on speed test mode, where all feed operations are immediately acknowledged by the server.FeedClientBuilder.setSslContext
(SSLContext context) SetsSSLContext
instance.Modifier and TypeMethodDescriptionstatic void
FeedClientBuilder.setFeedClientBuilderSupplier
(Supplier<FeedClientBuilder> supplier) Override FeedClientBuilder.