Package org.postgresql.hostchooser
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:HostChooser
Lists connection hosts in preferred order.- Specified by:
iterator
in interfaceHostChooser
- Specified by:
iterator
in interfaceIterable<CandidateHost>
- Returns:
- connection hosts in preferred order.
-