Package org.jivesoftware.openfire.net
Class HappyEyeballsResolver
- java.lang.Object
-
- org.jivesoftware.openfire.net.HappyEyeballsResolver
-
public class HappyEyeballsResolver extends Object
-
-
Constructor Summary
Constructors Constructor Description HappyEyeballsResolver(List<SrvRecord> serviceRecords, boolean preferIpv4, Duration resolutionDelay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedServiceAddressgetNext()DurationgetResolutionDelay()booleanisDone()voidshutdown()voidshutdownNow()voidstart()
-
-
-
Method Detail
-
getResolutionDelay
public Duration getResolutionDelay()
-
start
public void start() throws ExecutionException, InterruptedException
-
isDone
public boolean isDone()
-
shutdown
public void shutdown()
-
shutdownNow
public void shutdownNow()
-
getNext
public ResolvedServiceAddress getNext() throws InterruptedException
- Throws:
InterruptedException
-
-