org.postgresql.hostchooser
Class MultiHostChooser

java.lang.Object
  extended by org.postgresql.hostchooser.MultiHostChooser
All Implemented Interfaces:
HostChooser

public class MultiHostChooser
extends Object
implements HostChooser

HostChooser that keeps track of known host statuses.


Constructor Summary
protected MultiHostChooser(HostSpec[] hostSpecs, HostRequirement targetServerType, Properties info)
           
 
Method Summary
 Iterator<HostSpec> 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
 

Constructor Detail

MultiHostChooser

protected MultiHostChooser(HostSpec[] hostSpecs,
                           HostRequirement targetServerType,
                           Properties info)
Method Detail

iterator

public Iterator<HostSpec> iterator()
Description copied from interface: HostChooser
Lists connection hosts in preferred order.

Specified by:
iterator in interface HostChooser
Returns:
connection hosts in preferred order.


Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.