use of com.questdb.net.ha.mcast.OnDemandAddressSender in project questdb by bluestreak01.
the class MulticastTest method assertMulticast.
private void assertMulticast() throws JournalNetworkException, InterruptedException {
AbstractOnDemandSender sender = new OnDemandAddressSender(new ServerConfig(), 120, 150, 0);
sender.start();
Thread.sleep(1000L);
OnDemandAddressPoller poller = new OnDemandAddressPoller(new ClientConfig(), 150, 120);
ServerNode address = poller.poll(2, 500, TimeUnit.MILLISECONDS);
Assert.assertNotNull(address);
sender.halt();
}
Aggregations