public static class AsynchronousSender.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AsynchronousSender |
build() |
AsynchronousSender.Builder |
publishSynchronouslyWhenRingbufferIsFull() |
AsynchronousSender.Builder |
skipMessageWhenRingbufferIsFull() |
AsynchronousSender.Builder |
withAddressLookup(Supplier<InetSocketAddress> addressLookup) |
AsynchronousSender.Builder |
withErrorHandler(StatsDClientErrorHandler errorHandler) |
AsynchronousSender.Builder |
withHostAndPort(String hostname,
int port) |
AsynchronousSender.Builder |
withRingbufferSize(int ringbufferSize) |
AsynchronousSender.Builder |
withSocketSupplier(Supplier<DatagramChannel> socketSupplier) |
public AsynchronousSender.Builder withHostAndPort(String hostname, int port)
public AsynchronousSender.Builder withSocketSupplier(Supplier<DatagramChannel> socketSupplier)
public AsynchronousSender.Builder withAddressLookup(Supplier<InetSocketAddress> addressLookup)
public AsynchronousSender.Builder withErrorHandler(StatsDClientErrorHandler errorHandler)
public AsynchronousSender.Builder withRingbufferSize(int ringbufferSize)
public AsynchronousSender.Builder skipMessageWhenRingbufferIsFull()
public AsynchronousSender.Builder publishSynchronouslyWhenRingbufferIsFull()
public AsynchronousSender build()
Copyright © 2021. All rights reserved.