Top Description Methods
io.netty5.resolver.dns

public Interface DnsServerAddressStream

Known Direct Implementers
io.netty5.resolver.dns.SequentialDnsServerAddressStream, io.netty5.resolver.dns.ShuffledDnsServerAddressStream, io.netty5.resolver.dns.DnsResolveContext.CombinedDnsServerAddressStream
Imports
java.net.InetSocketAddress

An infinite stream of DNS server addresses.

Method Summary

Modifier and TypeMethod and Description
public DnsServerAddressStream

Returns:

A duplicate of this object.
duplicate
()

Duplicate this object.

public InetSocketAddress
next()

Retrieves the next DNS server address from the stream.

public int

Returns:

the number of times next() will return a distinct element before repeating or terminating.
size
()

Get the number of times next() will return a distinct element before repeating or terminating.

Method Detail

duplicateback to summary
public DnsServerAddressStream duplicate()

Duplicate this object. The result of this should be able to be independently iterated over via next().

Note that clone() isn't used because it may make sense for some implementations to have the following relationship x.duplicate() == x.

Returns:DnsServerAddressStream

A duplicate of this object.

nextback to summary
public InetSocketAddress next()

Retrieves the next DNS server address from the stream.

sizeback to summary
public int size()

Get the number of times next() will return a distinct element before repeating or terminating.

Returns:int

the number of times next() will return a distinct element before repeating or terminating.