org.postgresql.hostchooser
Class SingleHostChooser

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

public class SingleHostChooser
extends Object
implements HostChooser

Host chooser that returns the single host.


Constructor Summary
SingleHostChooser(HostSpec hostSpec)
           
 
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

SingleHostChooser

public SingleHostChooser(HostSpec hostSpec)
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.