Class HappyEyeballsResolver

java.lang.Object
org.jivesoftware.openfire.net.HappyEyeballsResolver

public class HappyEyeballsResolver extends Object
  • Constructor Details

    • HappyEyeballsResolver

      public HappyEyeballsResolver(List<SrvRecord> serviceRecords, boolean preferIpv4, Duration resolutionDelay)
  • Method Details

    • getResolutionDelay

      public Duration getResolutionDelay()
    • start

      public void start() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • isExhausted

      public boolean isExhausted()
      Returns true if this resolver has been fully exhausted: all DNS resolution tasks have completed and all resolved addresses have been consumed via getNext(). Note that this method returning false does 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 invoking getNext() until this method returns true. Once this method returns true, any subsequent call to getNext() will return null.
      Returns:
      true if all resolution tasks have completed and all resolved addresses have been consumed; false otherwise.
    • shutdown

      public void shutdown()
    • shutdownNow

      public void shutdownNow()
    • getNext

      Throws:
      InterruptedException