public class HostIdCacheServiceImpl extends java.lang.Object implements HostIdCacheService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_ENABLED |
static java.lang.String |
PROP_REGEXP |
| Constructor and Description |
|---|
HostIdCacheServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected @Nullable HostSpec |
getCachedHostSpec(@NonNull java.sql.Connection connection,
@NonNull HostSpec connectionHostSpec,
@NonNull PluginService pluginService) |
@Nullable HostSpec |
identifyConnection(@NonNull java.sql.Connection connection,
@NonNull HostSpec connectionHostSpec,
@NonNull PluginService pluginService)
Identify connected host using cache.
|
public static final java.lang.String PROP_ENABLED
public static final java.lang.String PROP_REGEXP
public @Nullable HostSpec identifyConnection(@NonNull java.sql.Connection connection, @NonNull HostSpec connectionHostSpec, @NonNull PluginService pluginService) throws java.sql.SQLException
HostIdCacheServiceidentifyConnection in interface HostIdCacheServiceconnection - connection to be identifiedconnectionHostSpec - HostSpec of provided connectionpluginService - pluginService instancejava.sql.SQLException - if an error occurs while identifying the hostprotected @Nullable HostSpec getCachedHostSpec(@NonNull java.sql.Connection connection, @NonNull HostSpec connectionHostSpec, @NonNull PluginService pluginService) throws java.sql.SQLException
java.sql.SQLException