public static class HttpClientSender.Builder extends Object
HttpClientSender
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PATH |
static 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(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.
|
List<URI> |
getServers() |
HttpClientSender.Builder |
invocationInstrumenterFactories(List<InvocationInstrumenterFactory> invocationInstrumenterFactories)
The invocation instrumenter factories to use.
|
HttpClientSender.Builder |
messageMaxBytes(int messageMaxBytes)
The message max bytes.
|
HttpClientSender.Builder |
path(String path)
The path to use.
|
HttpClientSender.Builder |
server(URI endpoint)
The endpoint to use.
|
HttpClientSender.Builder |
url(URI endpoint)
The endpoint to use.
|
HttpClientSender.Builder |
urls(List<URI> urls)
The endpoint to use.
|
public static final String DEFAULT_PATH
public static final String DEFAULT_SERVER_URL
public Builder(HttpClientConfiguration clientConfiguration)
clientConfiguration
- The HTTP client configurationpublic 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(URI endpoint)
endpoint
- The fully qualified URI of the Zipkin endpointpublic HttpClientSender.Builder url(URI endpoint)
endpoint
- The fully qualified URI of the Zipkin endpointpublic HttpClientSender.Builder urls(List<URI> urls)
urls
- The zipkin server URLspublic HttpClientSender.Builder path(String path)
path
- The path of the Zipkin endpointpublic HttpClientSender.Builder invocationInstrumenterFactories(List<InvocationInstrumenterFactory> invocationInstrumenterFactories)
invocationInstrumenterFactories
- The invocation instrumeter factories to instrument http client netty handlers execution withpublic HttpClientSender build(Provider<LoadBalancerResolver> loadBalancerResolver)
HttpClientSender
.loadBalancerResolver
- Resolver instance capable of resolving references to services into a concrete load-balance