Class SingleHostChooser
java.lang.Object
org.postgresql.hostchooser.SingleHostChooser
- All Implemented Interfaces:
Iterable<CandidateHost>, HostChooser
Host chooser that returns the single host.
-
Field Details
-
candidateHost
-
-
Constructor Details
-
SingleHostChooser
SingleHostChooser(HostSpec hostSpec, HostRequirement targetServerType)
-
-
Method Details
-
iterator
Description copied from interface:HostChooserLists connection hosts in preferred order.- Specified by:
iteratorin interfaceHostChooser- Specified by:
iteratorin interfaceIterable<CandidateHost>- Returns:
- connection hosts in preferred order.
-