public abstract class BaseConnectRouting extends BaseRouting implements ConnectRouting
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
hostAndPort |
protected BlueGreenRole |
role |
SLEEP_CHUNK| Constructor and Description |
|---|
BaseConnectRouting(@Nullable java.lang.String hostAndPort,
@Nullable BlueGreenRole role) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.sql.Connection |
apply(ConnectionPlugin plugin,
HostSpec hostSpec,
java.util.Properties props,
boolean isInitialConnection,
JdbcCallable<java.sql.Connection,java.sql.SQLException> connectFunc,
StorageService storageService,
PluginService pluginService) |
boolean |
isMatch(HostSpec hostSpec,
BlueGreenRole hostRole) |
java.lang.String |
toString() |
delay, getNanoTimeprotected final java.lang.String hostAndPort
protected final BlueGreenRole role
public BaseConnectRouting(@Nullable java.lang.String hostAndPort,
@Nullable BlueGreenRole role)
public boolean isMatch(HostSpec hostSpec, BlueGreenRole hostRole)
isMatch in interface ConnectRoutingpublic abstract java.sql.Connection apply(ConnectionPlugin plugin, HostSpec hostSpec, java.util.Properties props, boolean isInitialConnection, JdbcCallable<java.sql.Connection,java.sql.SQLException> connectFunc, StorageService storageService, PluginService pluginService) throws java.sql.SQLException
apply in interface ConnectRoutingjava.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object