public interface HostIdCacheService
dialect.getHostId() keyed by the connection host name.
The cached value is a Pair of (hostId, hostName) as returned by the dialect.| Modifier and Type | Method and Description |
|---|---|
@Nullable HostSpec |
identifyConnection(@NonNull java.sql.Connection connection,
@NonNull HostSpec connectionHostSpec,
@NonNull PluginService pluginService)
Identify connected host using cache.
|
@Nullable HostSpec identifyConnection(@NonNull java.sql.Connection connection, @NonNull HostSpec connectionHostSpec, @NonNull PluginService pluginService) throws java.sql.SQLException
connection - connection to be identifiedconnectionHostSpec - HostSpec of provided connectionpluginService - pluginService instancejava.sql.SQLException - if an error occurs while identifying the host