public final class DnsTextEndpointGroupBuilder extends Object
DnsTextEndpointGroup that sources its Endpoint list from the TXT
DNS records of a certain hostname.| Constructor and Description |
|---|
DnsTextEndpointGroupBuilder(String hostname,
Function<byte[],Endpoint> mapping)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
B |
backoff(Backoff backoff)
Sets the
Backoff that determines how much delay should be inserted between queries when a DNS
server sent an error response. |
DnsTextEndpointGroup |
build()
Returns a newly created
DnsTextEndpointGroup. |
B |
eventLoop(io.netty.channel.EventLoop eventLoop)
Sets the
EventLoop to use for sending DNS queries. |
B |
serverAddresses(InetSocketAddress... serverAddresses)
Sets the DNS server addresses to send queries to.
|
B |
serverAddresses(Iterable<InetSocketAddress> serverAddresses)
Sets the DNS server addresses to send queries to.
|
B |
ttl(int minTtl,
int maxTtl)
Sets the minimum and maximum TTL of the DNS records (in seconds).
|
@Deprecated public DnsTextEndpointGroupBuilder(String hostname, Function<byte[],Endpoint> mapping)
DnsTextEndpointGroup.builder(String, Function).DnsTextEndpointGroup for the specified hostname.public DnsTextEndpointGroup build()
DnsTextEndpointGroup.public final B eventLoop(io.netty.channel.EventLoop eventLoop)
EventLoop to use for sending DNS queries.public final B ttl(int minTtl,
int maxTtl)
minTtl or maxTtl will be used respectively. The default
minTtl and maxTtl are 1 and Integer.MAX_VALUE, which practically tells
to respect the server TTL.public final B serverAddresses(InetSocketAddress... serverAddresses)
public final B serverAddresses(Iterable<InetSocketAddress> serverAddresses)
Copyright © 2020 LeanCloud. All rights reserved.