Class SingleHostChooser

  • All Implemented Interfaces:
    java.lang.Iterable<CandidateHost>, HostChooser

    class SingleHostChooser
    extends java.lang.Object
    implements HostChooser
    Host chooser that returns the single host.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<CandidateHost> iterator()
      Lists connection hosts in preferred order.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • candidateHost

        private final java.util.Collection<CandidateHost> candidateHost
    • Method Detail

      • iterator

        public java.util.Iterator<CandidateHost> iterator()
        Description copied from interface: HostChooser
        Lists connection hosts in preferred order.
        Specified by:
        iterator in interface HostChooser
        Specified by:
        iterator in interface java.lang.Iterable<CandidateHost>
        Returns:
        connection hosts in preferred order.