DnsEndpointGroupBuilder { final EventLoop eventLoop() { if (eventLoop != null) { return eventLoop; } else { return CommonPools.workerGroup().next(); } } DnsEndpointGroupBuilder(String hostname); DnsEndpointGroupBuilder eventLoop(EventLoop eventLoop); DnsEndpointGroupBuilder ttl(int minTtl, int maxTtl); DnsEndpointGroupBuilder queryTimeout(Duration queryTimeout); DnsEndpointGroupBuilder queryTimeoutMillis(long queryTimeoutMillis); DnsEndpointGroupBuilder serverAddresses(InetSocketAddress... serverAddresses); DnsEndpointGroupBuilder serverAddresses(Iterable<InetSocketAddress> serverAddresses); DnsEndpointGroupBuilder backoff(Backoff backoff); DnsEndpointGroupBuilder selectionStrategy(EndpointSelectionStrategy selectionStrategy);  }
@Test void eventLoop() { assertThat(builder().eventLoop()).isNotNull(); final EventLoop loop = new NioEventLoopGroup().next(); assertThat(builder().eventLoop(loop).eventLoop()).isSameAs(loop); assertThatThrownBy(() -> builder().eventLoop(new DefaultEventLoop())) .isInstanceOf(IllegalArgumentException.class).hasMessageContaining("unsupported"); }