public static class HttpClientSender.Builder
extends java.lang.Object
HttpClientSender
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PATH |
static java.lang.String |
DEFAULT_SERVER_URL |
Constructor and Description |
---|
Builder(HttpClientConfiguration clientConfiguration)
Initialize the builder with HTTP client configurations.
|
Modifier and Type | Method and Description |
---|---|
HttpClientSender |
build(javax.inject.Provider<LoadBalancerResolver> loadBalancerResolver)
Constructs a
HttpClientSender . |
HttpClientSender.Builder |
compressionEnabled(boolean compressionEnabled)
Whether compression is enabled (defaults to true).
|
HttpClientSender.Builder |
encoding(zipkin2.codec.Encoding encoding)
The encoding to use.
|
java.util.List<java.net.URI> |
getServers() |
HttpClientSender.Builder |
messageMaxBytes(int messageMaxBytes)
The message max bytes.
|
HttpClientSender.Builder |
server(java.net.URI endpoint)
The endpoint to use.
|
HttpClientSender.Builder |
url(java.net.URI endpoint)
The endpoint to use.
|
HttpClientSender.Builder |
urls(java.util.List<java.net.URI> urls)
The endpoint to use.
|
public static final java.lang.String DEFAULT_PATH
public static final java.lang.String DEFAULT_SERVER_URL
public Builder(HttpClientConfiguration clientConfiguration)
clientConfiguration
- The HTTP client configurationpublic java.util.List<java.net.URI> getServers()
public HttpClientSender.Builder encoding(zipkin2.codec.Encoding encoding)
Encoding.JSON
encoding
- The encodingpublic HttpClientSender.Builder messageMaxBytes(int messageMaxBytes)
messageMaxBytes
- The max bytespublic HttpClientSender.Builder compressionEnabled(boolean compressionEnabled)
compressionEnabled
- True if compression is enabledpublic HttpClientSender.Builder server(java.net.URI endpoint)
endpoint
- The fully qualified URI of the Zipkin endpointpublic HttpClientSender.Builder url(java.net.URI endpoint)
endpoint
- The fully qualified URI of the Zipkin endpointpublic HttpClientSender.Builder urls(java.util.List<java.net.URI> urls)
urls
- The zipkin server URLspublic HttpClientSender build(javax.inject.Provider<LoadBalancerResolver> loadBalancerResolver)
HttpClientSender
.loadBalancerResolver
- Resolver instance capable of resolving references to services into a concrete load-balance