servicetalk-dns-discovery-netty/src/main/java/io/servicetalk/dns/discovery/netty/DefaultDnsServiceDiscovererBuilder.java
/**
     * Set the maximum size of the receiving UDP datagram (in bytes).
     * <p>
     * If the DNS response exceeds this amount the request will be automatically retried via TCP.
     *
     * @param maxUdpPayloadSize the maximum size of the receiving UDP datagram (in bytes)
     * @return {@code this}.
     */
Set the maximum size of the receiving UDP datagram (in bytes).

If the DNS response exceeds this amount the request will be automatically retried via TCP.

@param maxUdpPayloadSize the maximum size of the receiving UDP datagram (in bytes)
@return  this.
Set the maximum size of the receiving UDP datagram ( in bytes ) . If the DNS response exceeds this amount the request will be automatically retried via TCP . @param maxUdpPayloadSize the maximum size of the receiving UDP datagram ( in bytes ) @return this .
public DefaultDnsServiceDiscovererBuilder maxUdpPayloadSize(final int maxUdpPayloadSize) {
        if (maxUdpPayloadSize <= 0) {
            throw new IllegalArgumentException("maxUdpPayloadSize: " + maxUdpPayloadSize + " (expected > 0)");
        }
        this.maxUdpPayloadSize = maxUdpPayloadSize;
        return this;
    }
public DefaultDnsServiceDiscovererBuilder maxUdpPayloadSize ( final int maxUdpPayloadSize ) { if ( maxUdpPayloadSize <= 0 ) { throw new IllegalArgumentException ( "maxUdpPayloadSize: " + maxUdpPayloadSize + " (expected > 0)" ) ; } this . maxUdpPayloadSize = maxUdpPayloadSize ; return this ; }
Set the maximum size of the receiving UDP datagram (in bytes).
Set the maximum size of the receiving UDP datagram ( in bytes ) .