org.postgresql.hostchooser
Class SingleHostChooser
java.lang.Object
org.postgresql.hostchooser.SingleHostChooser
- All Implemented Interfaces:
- HostChooser
public class SingleHostChooser
- extends Object
- implements HostChooser
Host chooser that returns the single host.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleHostChooser
public SingleHostChooser(HostSpec hostSpec)
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.