public static final class ZipkinPublisher.Builder
extends java.lang.Object
ZipkinPublisher
.Constructor and Description |
---|
Builder(java.lang.String serviceName,
java.net.SocketAddress collectorAddress)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
ZipkinPublisher |
build()
Note that this may block while the underlying channel is bound/connected.
|
ZipkinPublisher.Builder |
collectorAddress(java.net.SocketAddress collectorAddress)
Configures the collector address.
|
ZipkinPublisher.Builder |
encoder(ZipkinPublisher.Encoder encoder)
Configures the format.
|
ZipkinPublisher.Builder |
localAddress(java.net.InetSocketAddress localAddress)
Configures the local address.
|
ZipkinPublisher.Builder |
protocol(ZipkinPublisher.Transport transport)
Configures the transport.
|
ZipkinPublisher.Builder |
serviceName(java.lang.String serviceName)
Configures the service name.
|
public Builder(java.lang.String serviceName, java.net.SocketAddress collectorAddress)
serviceName
- the service name.collectorAddress
- the SocketAddress
of the collector.public ZipkinPublisher.Builder serviceName(java.lang.String serviceName)
serviceName
- the service name.public ZipkinPublisher.Builder collectorAddress(java.net.SocketAddress collectorAddress)
collectorAddress
- the SocketAddress
of the collector.public ZipkinPublisher.Builder localAddress(java.net.InetSocketAddress localAddress)
localAddress
- the local InetSocketAddress
.public ZipkinPublisher.Builder encoder(ZipkinPublisher.Encoder encoder)
encoder
- the ZipkinPublisher.Encoder
to use.public ZipkinPublisher.Builder protocol(ZipkinPublisher.Transport transport)
transport
- the ZipkinPublisher.Transport
to use.public ZipkinPublisher build()