public abstract class AbstractConnectionStrategy extends java.lang.Object implements ConnectionStrategy
Constructor and Description |
---|
AbstractConnectionStrategy() |
Modifier and Type | Method and Description |
---|---|
Connection |
connect(ClusterMetaData cluster,
ServerMetaData server) |
protected Connection |
connect(ClusterMetaData cluster,
java.net.URI uri) |
protected abstract FailoverSelection |
createFailureEvent(java.util.Set<java.net.URI> remaining,
java.util.Set<java.net.URI> failed,
java.net.URI uri) |
protected abstract java.lang.Iterable<java.net.URI> |
createIterable(ClusterMetaData cluster) |
public Connection connect(ClusterMetaData cluster, ServerMetaData server) throws java.io.IOException
connect
in interface ConnectionStrategy
java.io.IOException
protected abstract FailoverSelection createFailureEvent(java.util.Set<java.net.URI> remaining, java.util.Set<java.net.URI> failed, java.net.URI uri)
protected abstract java.lang.Iterable<java.net.URI> createIterable(ClusterMetaData cluster)
protected Connection connect(ClusterMetaData cluster, java.net.URI uri) throws java.io.IOException
java.io.IOException