Package org.postgresql.hostchooser
Class MultiHostChooser
- java.lang.Object
-
- org.postgresql.hostchooser.MultiHostChooser
-
- All Implemented Interfaces:
HostChooser
public class MultiHostChooser extends java.lang.Object implements HostChooser
HostChooser that keeps track of known host statuses.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MultiHostChooser(HostSpec[] hostSpecs, HostRequirement targetServerType, java.util.Properties info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<HostSpec>
iterator()
Lists connection hosts in preferred order.
-
-
-
Constructor Detail
-
MultiHostChooser
protected MultiHostChooser(HostSpec[] hostSpecs, HostRequirement targetServerType, java.util.Properties info)
-
-
Method Detail
-
iterator
public java.util.Iterator<HostSpec> iterator()
Description copied from interface:HostChooser
Lists connection hosts in preferred order.- Specified by:
iterator
in interfaceHostChooser
- Returns:
- connection hosts in preferred order.
-
-