Package io.netty.resolver.dns
Interface DnsServerAddressStream
-
- All Known Subinterfaces:
DnsServerResponseFeedbackAddressStream
public interface DnsServerAddressStreamAn infinite stream of DNS server addresses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DnsServerAddressStreamduplicate()Duplicate this object.java.net.InetSocketAddressnext()Retrieves the next DNS server address from the stream.intsize()Get the number of timesnext()will return a distinct element before repeating or terminating.
-
-
-
Method Detail
-
next
java.net.InetSocketAddress next()
Retrieves the next DNS server address from the stream.
-
size
int size()
Get the number of timesnext()will return a distinct element before repeating or terminating.- Returns:
- the number of times
next()will return a distinct element before repeating or terminating.
-
duplicate
DnsServerAddressStream duplicate()
Duplicate this object. The result of this should be able to be independently iterated over vianext().Note that
#clone()isn't used because it may make sense for some implementations to have the following relationshipx.duplicate() == x.- Returns:
- A duplicate of this object.
-
-