Package org.jivesoftware.openfire.net
Class HappyEyeballsResolver
java.lang.Object
org.jivesoftware.openfire.net.HappyEyeballsResolver
-
Constructor Summary
ConstructorsConstructorDescriptionHappyEyeballsResolver(List<SrvRecord> serviceRecords, boolean preferIpv4, Duration resolutionDelay) -
Method Summary
-
Constructor Details
-
HappyEyeballsResolver
-
-
Method Details
-
getResolutionDelay
-
start
-
isExhausted
public boolean isExhausted()Returnstrueif this resolver has been fully exhausted: all DNS resolution tasks have completed and all resolved addresses have been consumed viagetNext(). Note that this method returningfalsedoes not necessarily mean that resolution is still in progress. It may also indicate that resolution has finished but unconsumed addresses remain in the queue. Callers should continue invokinggetNext()until this method returnstrue. Once this method returnstrue, any subsequent call togetNext()will returnnull.- Returns:
trueif all resolution tasks have completed and all resolved addresses have been consumed;falseotherwise.
-
shutdown
public void shutdown() -
shutdownNow
public void shutdownNow() -
getNext
- Throws:
InterruptedException
-