public class StickyConnectionStrategy extends AbstractConnectionStrategy
Modifier and Type | Class and Description |
---|---|
class |
StickyConnectionStrategy.StickyIterable |
Constructor and Description |
---|
StickyConnectionStrategy() |
StickyConnectionStrategy(AbstractConnectionStrategy secondaryConnectionStrategy) |
Modifier and Type | Method and Description |
---|---|
protected FailoverSelection |
createFailureEvent(java.util.Set<java.net.URI> remaining,
java.util.Set<java.net.URI> failed,
java.net.URI uri) |
protected java.lang.Iterable<java.net.URI> |
createIterable(ClusterMetaData cluster) |
AbstractConnectionStrategy |
getSecondaryConnectionStrategy() |
connect, connect
public StickyConnectionStrategy()
public StickyConnectionStrategy(AbstractConnectionStrategy secondaryConnectionStrategy)
public AbstractConnectionStrategy getSecondaryConnectionStrategy()
protected FailoverSelection createFailureEvent(java.util.Set<java.net.URI> remaining, java.util.Set<java.net.URI> failed, java.net.URI uri)
createFailureEvent
in class AbstractConnectionStrategy
protected java.lang.Iterable<java.net.URI> createIterable(ClusterMetaData cluster)
createIterable
in class AbstractConnectionStrategy