/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a rotational sequential * order. It is similar to {@link #sequential(Iterable)}, but each {@link DnsServerAddressStream} starts from * a different starting point. For example, the first {@link #stream()} will start from the first address, the * second one will start from the second address, and so on. */ public static DnsServerAddresses rotational(Iterable<? extends InetSocketAddress> addresses) { return rotational0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a rotational sequential * order. It is similar to {@link #sequential(Iterable)}, but each {@link DnsServerAddressStream} starts from * a different starting point. For example, the first {@link #stream()} will start from the first address, the * second one will start from the second address, and so on. */ public static DnsServerAddresses rotational(InetSocketAddress... addresses) { return rotational0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} sequentially. Once the * last address is yielded, it will start again from the first address. */ public static DnsServerAddresses sequential(Iterable<? extends InetSocketAddress> addresses) { return sequential0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} sequentially. Once the * last address is yielded, it will start again from the first address. */ public static DnsServerAddresses sequential(InetSocketAddress... addresses) { return sequential0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code address} in a shuffled order. Once all * addresses are yielded, the addresses are shuffled again. */ public static DnsServerAddresses shuffled(Iterable<? extends InetSocketAddress> addresses) { return shuffled0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a shuffled order. Once all * addresses are yielded, the addresses are shuffled again. */ public static DnsServerAddresses shuffled(InetSocketAddress... addresses) { return shuffled0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a rotational sequential * order. It is similar to {@link #sequential(Iterable)}, but each {@link DnsServerAddressStream} starts from * a different starting point. For example, the first {@link #stream()} will start from the first address, the * second one will start from the second address, and so on. */ public static DnsServerAddresses rotational(InetSocketAddress... addresses) { return rotational0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a shuffled order. Once all * addresses are yielded, the addresses are shuffled again. */ public static DnsServerAddresses shuffled(InetSocketAddress... addresses) { return shuffled0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} sequentially. Once the * last address is yielded, it will start again from the first address. */ public static DnsServerAddresses sequential(Iterable<? extends InetSocketAddress> addresses) { return sequential0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code address} in a shuffled order. Once all * addresses are yielded, the addresses are shuffled again. */ public static DnsServerAddresses shuffled(Iterable<? extends InetSocketAddress> addresses) { return shuffled0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} sequentially. Once the * last address is yielded, it will start again from the first address. */ public static DnsServerAddresses sequential(InetSocketAddress... addresses) { return sequential0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a rotational sequential * order. It is similar to {@link #sequential(Iterable)}, but each {@link DnsServerAddressStream} starts from * a different starting point. For example, the first {@link #stream()} will start from the first address, the * second one will start from the second address, and so on. */ public static DnsServerAddresses rotational(Iterable<? extends InetSocketAddress> addresses) { return rotational0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} sequentially. Once the * last address is yielded, it will start again from the first address. */ public static DnsServerAddresses sequential(InetSocketAddress... addresses) { return sequential0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a rotational sequential * order. It is similar to {@link #sequential(Iterable)}, but each {@link DnsServerAddressStream} starts from * a different starting point. For example, the first {@link #stream()} will start from the first address, the * second one will start from the second address, and so on. */ public static DnsServerAddresses rotational(InetSocketAddress... addresses) { return rotational0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} sequentially. Once the * last address is yielded, it will start again from the first address. */ public static DnsServerAddresses sequential(Iterable<? extends InetSocketAddress> addresses) { return sequential0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} sequentially. Once the * last address is yielded, it will start again from the first address. */ public static DnsServerAddresses sequential(InetSocketAddress... addresses) { return sequential0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a rotational sequential * order. It is similar to {@link #sequential(Iterable)}, but each {@link DnsServerAddressStream} starts from * a different starting point. For example, the first {@link #stream()} will start from the first address, the * second one will start from the second address, and so on. */ public static DnsServerAddresses rotational(InetSocketAddress... addresses) { return rotational0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a rotational sequential * order. It is similar to {@link #sequential(Iterable)}, but each {@link DnsServerAddressStream} starts from * a different starting point. For example, the first {@link #stream()} will start from the first address, the * second one will start from the second address, and so on. */ public static DnsServerAddresses rotational(Iterable<? extends InetSocketAddress> addresses) { return rotational0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code address} in a shuffled order. Once all * addresses are yielded, the addresses are shuffled again. */ public static DnsServerAddresses shuffled(Iterable<? extends InetSocketAddress> addresses) { return shuffled0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} in a rotational sequential * order. It is similar to {@link #sequential(Iterable)}, but each {@link DnsServerAddressStream} starts from * a different starting point. For example, the first {@link #stream()} will start from the first address, the * second one will start from the second address, and so on. */ public static DnsServerAddresses rotational(InetSocketAddress... addresses) { return rotational0(sanitize(addresses)); }