public abstract class BaseExecuteRouting extends BaseRouting implements ExecuteRouting
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
hostAndPort |
protected BlueGreenRole |
role |
SLEEP_CHUNK| Constructor and Description |
|---|
BaseExecuteRouting(@Nullable java.lang.String hostAndPort,
@Nullable BlueGreenRole role) |
| Modifier and Type | Method and Description |
|---|---|
abstract <T,E extends java.lang.Exception> |
apply(ConnectionPlugin plugin,
java.lang.Class<T> resultClass,
java.lang.Class<E> exceptionClass,
java.lang.Object methodInvokeOn,
java.lang.String methodName,
JdbcCallable<T,E> jdbcMethodFunc,
java.lang.Object[] jdbcMethodArgs,
StorageService storageService,
PluginService pluginService,
java.util.Properties props) |
boolean |
isMatch(HostSpec hostSpec,
BlueGreenRole hostRole) |
java.lang.String |
toString() |
delay, getNanoTimeprotected final java.lang.String hostAndPort
protected BlueGreenRole role
public BaseExecuteRouting(@Nullable java.lang.String hostAndPort,
@Nullable BlueGreenRole role)
public boolean isMatch(HostSpec hostSpec, BlueGreenRole hostRole)
isMatch in interface ExecuteRoutingpublic abstract <T,E extends java.lang.Exception> @NonNull java.util.Optional<T> apply(ConnectionPlugin plugin, java.lang.Class<T> resultClass, java.lang.Class<E> exceptionClass, java.lang.Object methodInvokeOn, java.lang.String methodName, JdbcCallable<T,E> jdbcMethodFunc, java.lang.Object[] jdbcMethodArgs, StorageService storageService, PluginService pluginService, java.util.Properties props) throws E extends java.lang.Exception
apply in interface ExecuteRoutingE extends java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Object