Interface DnsServerAddressStream
- All Known Subinterfaces:
DnsServerResponseFeedbackAddressStream
public interface DnsServerAddressStream
An infinite stream of DNS server addresses.
-
Method Details
-
next
InetSocketAddress next()Retrieves the next DNS server address from the stream. -
size
-
duplicate
DnsServerAddressStream duplicate()Duplicate this object. The result of this should be able to be independently iterated over vianext().Note that
isn't used because it may make sense for some implementations to have the following relationshipinvalid reference
#clone()x.duplicate() == x.- Returns:
- A duplicate of this object.
-