Top Description Fields Constructors Methods
org.postgresql.hostchooser

pack-priv Class SingleHostChooser

extends Object
implements HostChooser
Class Inheritance
All Implemented Interfaces
org.postgresql.hostchooser.HostChooser, java.lang.Iterable
Imports
org.postgresql.util.HostSpec, java.util.Collection, .Collections, .Iterator

Host chooser that returns the single host.

Field Summary

Modifier and TypeField and Description
private final Collection<CandidateHost>

Constructor Summary

AccessConstructor and Description
pack-priv
SingleHostChooser(HostSpec hostSpec, HostRequirement targetServerType)

Method Summary

Modifier and TypeMethod and Description
public Iterator<CandidateHost>
iterator()

Implements org.postgresql.hostchooser.HostChooser.iterator.

Lists connection hosts in preferred order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

candidateHostback to summary
private final Collection<CandidateHost> candidateHost

Constructor Detail

SingleHostChooserback to summary
pack-priv SingleHostChooser(HostSpec hostSpec, HostRequirement targetServerType)

Method Detail

iteratorback to summary
public Iterator<CandidateHost> iterator()

Implements org.postgresql.hostchooser.HostChooser.iterator.

Doc from org.postgresql.hostchooser.HostChooser.iterator.

Lists connection hosts in preferred order.

Returns:Iterator<CandidateHost>

connection hosts in preferred order.

Annotations
@Override